Possible Duplicate:
A curious problem occurring related to document.form.submit() in ASP. Please help. Thanks.
There are 3 buttons on a web page. On clicking each button a same popup window (say window1) opens up. Now there is another button on this popup window (window1), which further opens up to another popup window (say wi...
So I am grabbing RSS feeds via AJAX. After processing them, I have a html string that I want to manipulate using various jQuery functionality. In order to do this, I need a tree of DOM nodes.
I can parse a HTML string into the jQuery() function.
I can add it as innerHTML to some hidden node and use that.
I have even tried using mozilla'...
how to write java script for expand and collapse particular parent of treeview when i click on the parent node...
if one of parent node expand ,if i click on that it should be collopse,....
and if collapsed vics versa
...
Hi All, From here, I am trying to get data from stock quote for every 10 mins interval.
I used WebClient for downloading the page content and for parsing I used regular expressions. It is working fine for other urls. For the Particular URL, my parsing code not working.
I think it is the problem with javascript, When I load the page in...
How to replace all " " siblings from JSON string?
{"Cat":"laps milk","Dog":"Woofs at Postman","Bird":"Jumps over the river","I":"Want to learn Regexp"}
And btw, advice me please some good article or book from where I could finally learn Regexp :(
...
Hello.
So i have this:
/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequ...
Check this http://javascript.internet.com/forms/multiple-search-engine.html page. I wonder how to open search result in new window which works for Internet Explorer. Also, how to set body onload for the searchbox. Please help me. This third times i asked but there's no expert able to solve this. Before this, an expert was sent a solution...
Hi Guys,
I am trying to use jQupload to upload an image asynchronously. The script uses an iframe off of the page to upload and then catches the .load() event of the iframe to return the JSON message that is returned.
If I display the form at the bottom of a standard HTML page and include the javascript then it works fine. However, I w...
I have a problem with my form submission and here is the deal. I'm creating an image website and I want to create comments for every image so I have a anchor link which when clicked on shows the comments form, that is loads the html into the web page which wasn't inside at first place, so the form loaded inside the page is not submitting...
Can you pls help me to add more depth (sub-menus) to this Menu Tree, it has only one sub-menu:
the code is in this link ( http://www.dynamicdrive.com/dynamicindex1/dropmenu.htm )
Thanks.
...
I have a javascript array (from a yahoo pipe via JSONP) in which I have a sub-array called 'moby'.
I'd like to change the current structure:
value {
callback => blah,
generator => blah,
items {
0 {
author => blah,
category => blah,
moby {
day_no => 168,
more => Keep_this_stuff
},
1 {
...
I've seen all the posts but my problem isn't that it doesn't change the background color but rather that it does and the change it but to the original. Here's the code.
<html>
<head>
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="color.css"/>
<script type="text/java...
Again I'm asking question about comment form, I'm making an image website and every image has its own comment form, so when I submit form I do like this :
$('#comment_form').live('submit', function() {
...
So in order to select only this form textearea value I tried using this but I get undefined error here is how I tried :
$('#comm...
Hi boys:
I am trying to validate a TextEdit in order to contains a truly email address. I have a regular expression to do that, but it validates more than one address, and I just want to validate only one address, no more.
Here you are the expression I have:
/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
It val...
Hi there,
I have some javascript that is embedded in the html file like this
<html>
<head>
<script>
// and the script runs here
</script>
</head>
<body></body>
</html>
And it has a line like this
if((os == 'Mac')&&((br == 'Safari')||(br == 'Chrome')))
Everything goes OK (which means the scri...
Hey!
I want to print a table in PHP, each row has a button to load it's content (HTML codes) into the CKEditor instance.
$column = '<td><a href="#" onclick="CKEDITOR.instances.editor.setData(' . "'" . $HTMLcode . "');" . '">Load</a></td>';
echo $column;
The HTML code also contains quotes because of the CSS styles:
<p style='text-a...
Hi,
I'm using jQuery UI datepicker on my site and wish to have it styled slightly differently depending on the page it is on.
However, I've got a little problem as the div containing the calendar isn't nested to the element which the .datepicker() function is applied to. So I cannot style it differently per page. Eg.
<body>
<div id="wr...
Hello all,
I am having trouble checking checkboxes via JQuery - I have done this:
if(element[1]==3)
alert('#'+element[0]+'_1');//shows #chk_1
$('#'+element[0]+'_1').attr('checked', true);
$('#'+element[0]+'_2').attr('checked', true);
$('#'+element[0]+'_3').attr('checked', true);
}
I know it gets to that point because I can...
Is it possible to pass arguments to click or submit function like :
$("#example").click(function()
{
var myVar = x; // refering to x as passed argument
});
Maybe function inside a function ?
function Func(){
$("#example").click(function()
{
var myVar = x;
});
}
Maybe something like calling Func()('33'); will this pass the 33...
I am writing a JavaScript program in Rhino which needs to load other JavaScript files. However the built-in load() function loads files relatively to the current directory and I need to load them relatively to the location of the script (so that the program can be called form any directory).
In other languages I would use something like...