javascript

Which is good way to bind more than 10000 records with sql?

first way By using java script or second way By using Data sourse in asp.net sqldatasourse which is taking less stress while loading the data.. into webpage ...

Website problems with Safari

Does anyone know why my site is all messed up on safari? I need to get it live by monday and this is racking my brain. http://cheapramen.com/JQuery/WildFire/ Thanks in advance! ...

How do I draw the lines of a family tree using HTML CSS?

I'm trying to implement something similar to what http://www.ancestry.com has, but I'm not sure how to draw the lines. Here is a rough ascii sketch of what I want to do: +----GrDAD1 | +----DAD----+ | +----GrMOM1 ME --+ | +----GrDAD2 +----MOM----+ ...

Javascript 'if' conditional not ... conditioning.

I'm checking a number of 'read more' links on my blog, and either hiding the link (for the first two posts), or hiding the content and keeping the link. I'm running the links' id attributes through an if ... else statement that looks like so: $(document).find('.contentclicker').each(function(){ var pt = $(this).parent().attr('id');...

safe place to save code

Where is the most secure place to store sensitive code on a server (ex, authorization php, contact scripts, sensitive or protected javascript)? You guys/girls got any tips or tricks on how to protect that kind of stuff? ...

MSIE and addEventListener Problem in Javascript?

document.getElementById('container').addEventListener('copy',beforecopy,false ); In Chrome / Safari, the above will run the "beforecopy" function when the content on the page is being copied. MSIE is supposed to support this functionality as well, but for some reason I'm getting this error: "Object doesn't support this property or ...

Problem with Sortables in Scriptaculous

I'm having a problem with getting my divs to become sortable using Scriptaculous's Drag and Drop Library. <pre id="leftcol"> <div id="id0"><h3>Date and Time</h3><div class="moduleContent"></div></div> <div id="id14"><h3>Calculator</h3><div class="moduleContent"></div></div> </pre> <script type="text/javascript"> Sortable.create("leftco...

How to gracefully handle iframe breaker?

Hi, I understand that there is no way to kill the iframe breaker... However, I was wondering, is there a way to gracefully handling it. So far, I managed to detect it before exiting, using <body onunload="function();">. I was wondering whether it is possible to prevent it from loading the iframe or force it to open in the new window, ...

Java Script function call on body load

I have a java script function that i have called on body load mousemove() the function is working but the problem is that function is not overloading. Here is the code: function timeout(){ setTimeout ("logout()",60000); } function logout() { parent.parent.location="logout.php"; } ...

Help Cursor is not working in the firefox browser...

<html> <head> <title>Question</title> <script type="text/javascript" > function MouseOverHand(ID) { var Cursor='hand'; var ID=ID; if (!document.all){ Cursor='pointer'; } document.getElementById(ID).style.cursor=Cursor; } </script> <script type="text/javascript" > function MouseOverHelp(ID) { var Cursor='help'; var ID=ID; if (!docum...

Javascript focus in firefox

Hi all, I want to focus on a special textbox when page is loaded. I do this with js function focus() and it works fine. But when I open the page in a new tab in firefox, it doesn't focus on the textbox. any idea? ...

call function on iframe mouse move

I have a function that i need to call on iframe mousemove(). But i didnt found anything like we have in body tag We have <body mousemove="Function()"> Do we have anything like this for iframe?? ...

What is json,can you explain it to a newbie?

Can you explain it in most simple words? Best with a demo script. ...

javascript input field onchange causes "is not a function"

I have a function i would like to run onChange. This works fine with an a-tag. But when i use it on an input-tag it just says: form.saveFile is not a function This works: <a onclick="form.saveFile('fec056b774ffefa479c7dd3a632275cb','fec056b774ffefa479c7dd3a632275cb_filetest'); return false;" href="#">Upload file</a> This does NOT w...

yahoo widgets and importing rss/xml feed using javascript

I'm playing about creating an RSS reader widget using Konfabulator/Yahoo. At the moment I'm pulling in the RSS using var xmlDoc = COM.createObject("Microsoft.XMLDOM"); xmlDoc.loadXML("http:foo.com/feed.rss"); I've simplified it here by removing the error handling, but what else could I use to do the same task using konfabulator? And ...

javascript undefined

Why cant I access the render function when ajax returns successfully? maybe im going crazy but i've done this before. Its telling me that this.render is not a function? DataItem.prototype = { display: function () { $('body').append(this.name + ": " + this.getData(this.rootData, this.subData) + "<br />"); }, getData:...

Debugging jQuery AJAX response: what I'm doing wrong

$.ajax({ type: 'POST', url: 'place/add', data: { lat: lat, lng: lng, name: name, address: address, phone: phone, review: review, category: category }, success: function(data) { alert(data); alert(data.id); // ...... }); The first alert gives: {"id":...

Getting some weird results with jQuery / PHP / MySQL

I'm having trouble getting the expected result. I have the following jQuery script: // obj is the return result of another query jQuery.post("mypath/include/jquery_bll.php", { instance: 'controllAccess', brandID: obj.id }, function(data) { if (jQuery('#brand_selectList').length == 0) { if (data == "Locked") ...

Get the current url but without the http:// part bookmarklet!

Hi! Guys I have a question, hoping you can help me out with this one. I have a bookmarklet; javascript:q=(document.location.href);void(open('http://other.example.com/search.php?search='+location.href,'_self ','resizable,location,menubar,toolbar,scrollbars,status')); which takes URL of the current webpage and search for it in another ...

rendering web page as thumbnail

Hi, I asked this question earlier, since i am a little new to firefox extension development, the canvas thing for firefox went a little over my head. Apologies for reposting this again. with the first answer there was this code snippet: var path = this.getPref("path","string"); what are the path and string? yes i did look up for get...