AJAX and how to change address bar (?aaa=ggg)
Hi, i use Javascript(AJAX) and want to change the addressbar Ex: http://mywebsite.com to http//mywebsite.com?web=info ...
Hi, i use Javascript(AJAX) and want to change the addressbar Ex: http://mywebsite.com to http//mywebsite.com?web=info ...
Hi, I need to add some function that returns a value to a dom element. I tried to use jquery's bind method, but it seems that events always return a jquery collection. My goal is creating a flashcard application. So I created flashcard objects that contain methods and variables including the dom element representing the flashcard on the...
My nav looks like this: <a href="index.html" class="nav">Home</a> <a href="about.html" class="nav">About</a> <a href="#" class="nav">Services</a> <a href="contact.html" class="nav">Contact</a> On index.html I briefly mention the two services offered and include a "read more" link for each one. It looks like this: <div style="width:46...
I need to send a GET request to another domain preferably using jQuery. This isn't a same origin policy bypass because I don't need to get a response. For instance using JavaScript I know I can do this: document.write('<img src="http://somedomain.com/someapp.php?data='+data+'>') Is there a better way using jQuery? ...
I have an input string that will either be a JSON packet, ala: {"PHONE":"555-513-4318","FIRSTNAME":"Austin","ARTISTID":"2","LASTNAME":"Weber"} or a query string, ala: phone=555-513-4318&firstname=Austin&artistid=2&lastname=Weber For my purposes, I need to always use the latter format; so when it is JSON data, I need to convert it t...
Hello all, Here is my code: $("#ddlTableType").live( 'change', function() { $('#ddlTableCode').html(''); var TypeID = $("#ddlTableType > option[selected]").attr("value"); $.getJSON('LoadTableCodes.ashx?ObjectType=' + TypeID, function(TableCodes) { ...
Hello.Here is my code : <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript"> var toggle; toggle=1; function open(){ jQuery(window).bind("beforeunload", function(){$.post("logout.php");}) $.post("online.php",function(data){ $("#Layer6").html(data); }); } fu...
For come reason my login does not work I am using PHP and JavaScript to do so. PHP: $users = sql("SELECT * FROM USERS WHERE SITE_ID='${CONFIG["ID"]}'"); if($_REQUEST["logindata"]){ $logindata = $_REQUEST["logindata"]; $now = array_shift(explode(" ",microtime())); if($_REQUEST["time"] < strtotime("+10 sec",$now) && $_REQUEST...
Hi. I am looking for a (correct) way to read and write to a linux text file with javascript, jQuery and php. Specifically, I want to take the value of a (#taFile) with jQuery ($("#taFile").val();) and $.post it to a php script, which in turn writes the posted value to a text file. While my code mostly works, I have run into a snag: w...
This website : http://blog.joins.com/media/folderListSlide.asp?uid=ddatk&folder=3&list_id=9960150 has this code: <script>alert('¿Ã¹Ù¸¥ Çü½ÄÀÌ ¾Æ´Õ´Ï´Ù.');</script> So my web browser control show a popup, how can I bypass the popup without using sendkeys enter?? ...
I have a link (index.html#services) and a <div id="services> that I'm trying to change the background color of when the link is clicked and then fade back. I'm using the latest jQuery and jQuery Color plugin, and: $(document).ready(function(){ if(window.location.hash === '#services') { var service = $('#services'); ...
I searched and found no solution to spacing out a series of lis for a list style menu. I realized CSS alone can't do it so I added some javascript (jQuery). I didn't want the same widths for each LI, I wanted even padding with no leftover space. If anyone can take this concept and simplify my awful javascript or offer alternatives please...
I have a list of draggable elements built with element_to_drag. They sit inside a div. When dragging outside the div the draggable object vanishes under the side of the div. Much like this issue http://stackoverflow.com/questions/2098387/jquery-ui-draggable-elements-not-draggable-outside-of-scrolling-div is there an equivalent solution ...
I'm using jquery's $.get() to find out how many entries are in a table. I want the returned value to be an Int but it seems to be something else. How do I work with this? this is the code I have. I'm sure I'm just going about this wrong. My background is many java. var num = checksize(); function checksize(){ $.get("../php/checktablez...
i have a javascript code fragment as var u = {}; var x = y = z = {"cvalue":"cell", "call":function(){alert(this.cvalue);}}; (function(){u=x;/*change all cvalue in x,y, z, u*/ u.cvalue = "notcell";})(); if(u == x && x == y && y == z && z == u){ u.call(); } //only u goes to null u = null; //x,y,z stay same alert(x.cvalue); wonder...
Hi, i use the http://closure-compiler.appspot.com/home to compress my code. MY JS File *EDIT:* function test_it() { // some code } MY HTML Code <div onclick="test_it" />test</div> My problem is that the compressor rename my function. When i click (after the compression) on the div i get the error "test_it is not defined". That ...
Hi I am trying to set up a page that presents a grid with a sequence of times on it for a group of people. Essentially a calendar with rows for a specific time and columns for the person it relates to. I intend to have a modal dialog box open when a user clicks on a time and load the current data via AJAX. This is very similar to the c...
Let's see this example. <html> <body onload="alert((0.1234*300));alert((0.00005*300))"/> </html> Why the results are not as should be 37.02 and 0.015 but 37.019999999999996 and 0.015000000000000001 ? Ps: 0.00005*300 make error while 0.0005*30 and 0.005*3 are ok. ...
I am using the following code to open a modal box when a button is clicked. Works fine in all browsers but IE7 where I get an error. This is the code. Have I done something wrong??? <script type="text/javascript"> $(document).ready(function(){ var dialogOpts = { modal: true, bgiframe: true, autoOpen: false...
I want to use onbeforeunload to give a message to users before leaving certain pages. Is it possible to know which url they are supposed to jump to at the onbeforeunload event? Thanks ...