if isset SESSION display div
How do i do in jquery, to check if there's anything in isset SESSION user_message, each 1 seconds, and if there is then display #box else dont.. thanks ...
How do i do in jquery, to check if there's anything in isset SESSION user_message, each 1 seconds, and if there is then display #box else dont.. thanks ...
I usually type too much, so read bold copy if in a hurry. I'm trying to develop a little app in a very restrictive environment (at work)... I want to read data from a database, but I cant install stuff on my machine (so my usual choice of using python or visual studio is a no-no). Basically I will have to do with whatever I've got at ha...
I'm trying to use an to point to an .aspx file, but when I load it I keep getting an empty frame, no matter what is in the target aspx nothing gets displayed. Here the html: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> This i...
A colleague suggested to the testers they enter javascript:resizeTo(1024,768); into the address bar after starting the app to test it in the smallest browser dimensions for which we are responsible. However, shortly after executing this command (in IE6), the backspace and delete keys stopped working and users could not cut-and-paste. W...
Here's my code. <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <title></title> <script> $(document).ready(function(){ $("#video").html('<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/HPPj6viIBmU&hl=en_US&fs=1&"&g...
I'm using global variables to pass around a response from a AJAX call: window.response = null; // most recent response from XMLHttpRequest // the callback function for XMLHttpRequest function userObjFromJSON() { if (this.readyState == 4) { var json = eval('(' + this.responseText + ')'); window.response = json; }...
I'm more of an HTML/CSS guy than JQuery, and I've been struggling with building this concept for a while. I want to get it finished so that I can freely release it as a psuedo-plugin. I'm happy to credit anyone who can give me a little guidance, I think it's mostly there. First, my demo is at http://demindu.com/sandbox/. Issues: 1)...
I am trying to implement SlideShow of google in my site www.tapasya.co.in. You can see it on home page. The problem is that i m not being able to add images dynamically such that it can take all the images automatically from folder that i m specifying. Currently i have to add each nd every image in javascripts data array. Is it their ...
I have a set of links on a web page that link to PDF forms and .doc forms. These files are not stored in a database, simply stored as they are, locally on the server. Is it possible to retrieve the last modified date of a PDF or DOC file using Javascript? I don't have any specific need to use Javascript, but it is preferable. UPDATE:...
My JavaScript sometimes crashes on this line: var json = eval('(' + this.responseText + ')'); Crashes are caused when the argument of eval() is not JSON. Is there any way to check if the string is JSON before making this call? I don't want to use a framework - is there any way to make this work using just eval()? (There's a good reas...
I'm using this function to create an transparent overlay of information over the current div for a web-based mobile app. Background: using jQTouch, so I have separate divs, not individual pages loading new. $(document).ready(function() { $('.infoBtn').click(function() { $('#overlay').toggleFade(400); return false;...
So I recently discovered that I could use <>...</> tags in javascript in Firefox, which is handy when defining blocks of HTML or CSS. GM_addStyle(<><![CDATA[ .page { display: block } /* ... */ td { vertical-align: top } ]]></>); //... div.innerHTML = <><![CDATA[ <table class="section"> <!-- ... --> </table> ]]></>; But I...
http://code.google.com/apis/maps/documentation/services.html#LocalSearch Right now I have the local search loaded and can dynamically load new results by having hte user click on some links. However, I want a map that looks like http://code.google.com/apis/ajax/playground/#local_search_control The only downside is I'm not sure how to e...
I have a navigation bar that has two dropdowns (as nested ul's). I'm trying to toggle the subnavs when its parent is clicked. Or hide one subnav when the other parent is clicked. Here's the markup: <div id="nav-bar"> <a href="#">A link</a> | <ul> <li id="feedback"> <a href="javascript:void(0);">Feedback</a> <ul class...
I have an external js file that is basically a js object. I am using the ScriptManager.RegisterClientScriptInclude method to include the file on page, and after that I am using the ScriptManager.RegisterClientScriptBlock method to call a method of the js object, but am getting a js error of 'DynamicLoadingPanel is not defined'. I know th...
i have a form that has two drop down fields lets say A is one and B is another i want the drop down box B to be disabled unlit one of the value in the dropdown A is selected . how should i write a java scrip. ...
Hi all, Yesterday I moved CultureRater.com across to XHTML 1.0 Transitional and while the javascript below works in Safari and Chrome, it's not working in Firefox. Anyone got any ideas? If u need a better impression of the problem then visit the site in FF and go here and try pressing the white arrow on the right (the genres should chan...
We have a site that uses both Omniture and Google Analytics. Ideally, we want to report in both suites on clicks to outbound links. I'd like to do this the "right way," i.e. overcoming the race condition that occurs when requesting a site and the tracking pixel at the same time. See: http://www.gwotricks.com/test/2009/07/tracking-outbo...
I am having trouble with JS closures: // arg: an array of strings. each string is a mentioned user. // fills in the list of mentioned users. Click on a mentioned user's name causes the page to load that user's info. function fillInMentioned(mentions) { var mentionList = document.getElementById("mention-list"); mentionList.innerH...
Hi, I'm looking for a way to "inject" some events into a flash movie running on a browser. I know about ActionScript's ExternalInterface.addCallback function, however I'm trying to achieve this with any "random" flash from the web. Eg. send a "SPACE" keyboard event to a youtube video. ...