|
|
Browse by Tags
All Tags » javascript
Showing page 2 of 3 (23 total posts)
-
Hi,
I have a XML tag called: <cli>content</cli>.
I want to read (extract) the content out of the tags. so that i can read "content" without having the XML tags around it.
I have this code already that works:
----------------------------
<input type="textbox" ...
-
Hi,
I'm trying to construct a javascript code to be used as a bookmark in my browser. A click on the bookmark should add a string to the url of the currently shown web site.
For example, the site http://www.jstor.org/stable/2497020 should become http://www.jstor.org.proxy.libraries.org/stable/2497020.
So far, I have following code to be ...
-
Hi
I want a regexp to check that every open parenthesis has a closed parenthesis.
thank you in advance
-
This is about a strange behavior IE shows for a regex matching Im trying to do.
Here is a password matching expression Im trying to use for matching the below conditions.
Must contain minimum 8 to 20 characters, mandatorily including one letter and number
May include only one of the following special characters: %,&, _, ?, ...
-
Hello,
I have multiple dynamically generated tables with lots of different types of content in each cell. Some cells contain a mixed number represented by #-#/# (e.g. 4-5/6) What I'm trying to do is replace the fraction part of the mixed numbers (along with the hyphen) that might be located in a cell with <span ...
-
I'm a regex noob - but excited that I found this site.
Trying to figure out if this is even possible to do use regex and javascript.
I would like to parse a block of text that is stored in a javascript variable. This text is a mix of contact information and other miscellaneous information - some of which is of no value.
Ideally, ...
-
Hi,
With JavaScript's Date object you can easily do it:
<script type="text/javascript">
var oDate = new Date;
var newTime = oDate.getTime() + 60*60*1000
oDate.setTime(newTime);
alert(oDate);
</script>
To learn more about JavaScript Date object:
http://www.w3schools.com/jsref/jsref_obj_date.asp
-
Hi all,
first post, so I hope I'm posting this correctly. I need to increment the hour in JavaScript by 1 (i.e. I need to get the current hour, add an hour, and then return the answer). An example of the string is as follows (the hour is bolded):
2009-05-18T16:15:00Z
I'm re-learning RegEx after not visiting it for years, so I'd ...
-
I'm not sure exactly what this expression is doing (I can't parse regex), but I'd guess it's basically matching an href link:
/<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i
I'd like to modify it so that it excludes any href link that starts with ...
-
I'm trying to create two javascript bookmarklets:1. Take the current URL of the page and open a new window with a URL
based on the current page. Some examples (I use "->" to mean "this
URL turns into that URL"):
http://example.edu/som/faculty_staff.cfm#HeaderTitle -> ...
2
|
|
|