Sorry this is probably stupid wood for trees stuff but:
All I want is a div with a couple of links - you click on the links and you switch to another div. Standard tab stuff. That's it. But when I run the code below, it switches to the div I want then resets straight back to the original div. Why?
the Javascript:
number_of_pages = 4...
I have a very large array I need to check for debugging purposes, problem is it crashes firebug and the like if I try to view the data.
Is there a way I can dump the array to a text file or something?
...
Hi ,
am rendering around 3000 records ,
So row like
Customer Profile edit
Customername , Action
1 john editimage | Delete image
2 john editimage | Delete image
3 john editimage | Delete image
4 john editimage | Delete image
5 john editimage | Delete image
...
...
Hey everyone,
I am creating a gallery plug-in in which I need to figure out the number of elements in a plain javascript object. The following is how I would like to be able to create the gallery.
$.Gallery.create($('#galContainer'), {
'img1.png': 'http://linktosomewhere/',
'img2.png': 'http://linktosomewhere/',
'img3.png':...
Hi everyone,
I have a little problem. When I try to navigate between similar tags in my xml file it just wont jump to the next item. The text is displayed in a div (id=textb). Basically it gets all the contents from the xml file but for some reason my next() function is not working.
Javascript:
xmlhttp = window.XMLHttpRequest ? new XM...
Is it possible to call server side methods? (with postback)
This will post back as if I clicked the button1.
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm._doPostBack('Button1', '');
The problem with that, is that I need a button on the page.
I know I can use static webmethod, but I want to know if it's possible t...
Hi,
I need to show the status of file upload to servlet in the browser, how can this be acheived without using any libraries like jquery, what are the various options for doing this and which one is the best?
Best Regards,
Keshav
...
Hi i have a form where user can select start date and end date of a leave. For example when the no of days is 3, there will be 3 row of date generated. Each date,day and period (am/pm) will be stored in the hidden field. So 3 days will generate a hidden field with name date_1, day_1, period_1, date_2, day_2, period_2, date_3, day_3, peri...
I'm using Asp.NET 4 with Ajax Client Templates for my homepage.
The homepage generates a galley of pictures. Each picture has name ,description and additional details.
My problem is that client templates seems to be very bad for SEO.
This is because Google/yahoo bots see the page before templates load any data (images with description...
Hello,
I thought this was trivial but couldn't solve it out :(
I want to change a param passed in mu url with javascript.
var fullurl = window.location;
//do dome stuff to find var url.
fullurl.replace(/sort:.*\/direction:.*/g,'sort:' + url + '/direction:asc');
Basically there is a url like: http://example.com/article/ or http://exam...
Say I have an image like this:
<img src="someimage.png" alt="Image" />
I want to display the html of that image in for example a code tag, but how can I get it? I can get the image easily:
$('img');
But how can I get the HTML of it and append it to a code tag?
...
Possible Duplicate:
Javascript closure inside loops - simple practical example
Rather than explaining the question, I'll give an example:
for (var i = 0; i < 100; i ++) {
get_node(i).onclick = function() {
do_something_very_important(i);
}
}
Is there any way to have the value of i substituted into the function upon ...
How do I check if a file on my server exists in jQuery or Javascript?
Thanks in advance.
...
I'm working on a piece of code that uses regex expressions to do a find/replace for emoticons in a chat. However, I want to use the same array of values and output them as a reference.
The regex works fine for my searches, but when I tried to do a replace on the regex search string before I output it for my help, I still end up with a s...
I got a sidebar menu from DynamicDrive. I changed it a bit so that can be used from right to left. It works perfectly in all browsers except IE7. After loads of debugging I found out that when I remove the <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> tag it...
When trying Hpricot and Nokogiri, the HTML can be fetched and parsed, but can they also execute the Javascript as well so that the content shows on the page? (shows up in the the DOM). That's because some page won't show the info unless the Javascript interpreter has run.
...
I need to activate cpa lead when the button is press.
code:
<script type="text/javascript" src="http://www.cpalead.com/mygateway.php?pub=52514&amp;gateid=NjE1Njk%3D"></script>.
And the button is just <input type="button" />
So I need to activate the <script> after the button is clicked. Help please?
...
I have this:
$('input.people').attr('checked', function() {
return $.inArray(this.name, ['danB', 'lindaC']) != -1;
});
It is for a list of contacts. I want to be able to have the user click a checkbox that will select the people in a specific role and uncheck everyone else. That works. Now I want to modify this so that if someone...
Is there a quick way in javascript to select the element that called the function on an event such as onmouseover or onclick or do i have to use standard document selection in the method to select the element.
...
This is my code:
$.each(3, function(n) {
alert(n);
});
I want to alert three times but it doesn't work. What can I do?
...