Hello,
I have created a drop down with JQuery that can be seen here by clicking the Preview button on top:
http://jsbin.com/ubire3/edit
It works fine except for one problem. When i hover over the main hover links (blue ones) quickly eg going horizontally quickly hovering each top menu, the some submenus don't close. How do i make it s...
Hello. I am working for an intranet application. Therefore I have some control on the client machines. The JavaScript library I am using is somewhat big in size. I would like to pre-install OR pre-load OR cache the JavaScript library on each machine (each browser as well) so that it does not travel for each request. I know that browsers ...
script: http://keith-wood.name/countdown.htm
daily json response: items: { fajr: '5:23 am', sharooq: '7:23 am', dhur: '1:34 pm', asr: '4:66 pm': magrib: '6:23 pm', isha: '8:01 pm'}
when site loads i make ajax request and get the above response times, these are events that happens daily for everyday, but different timing. i want to get...
$.post("/diabetes/ropimages/getcount.php",{pid:$("#patient_id").val()} ,function(data1){
//alert(data1);
var count = data1;
var pid = $("#patient_id").val();
var rid;
for( var i = 1 ; i <= count ; i++) {
var link ='<img src="/diabetes/ropimages/thumbpicdisplay.php?pid=+pid+&rid=1" />';
$("#content1").empty().html(link)...
I have seen some questions here regarding what I want to achieve and have based what I have so far on those answer. But there is a slight misbehavior that is still irritating me.
What I have is sort of a recovery feature. Whenever you are typing text, the client sends a sync request to the server every 45 seconds. It does 2 things. Firs...
Hello,
With JQuery UI, there is an amazing explode effect. I wonder how they have created it.
I mean i am looking for implementation of that, how to create that effect without resorting to JQuery UI and use JQuery alone for that effect.
Any ideas?
Thanks
...
In text fields of my JSP, I wish to know whether user is typing in the data or just pasting.
How can I identify this using javascript ?
EDIT: As per Andy's answer I know how I can go about it, but still curios how those guys wrote onpaste event.
...
Hi,
i have an ebook(relatively large size say 800 pages),in HTML format. I am opening that book as webpage using webkit-gtk+. If i load the whole book at a time,it takes too much memory(RAM ).So i dont want to load the whole book at a time, but load the part of the book which is currently on display. and when the user scrolls down, next...
I need to add markup to some text using JavaScript regular expressions. In Python I could do this with:
>>> import re
>>> re.sub('(banana|apple)', r'<b>\1</b>', 'I have 1 banana and 2 apples!')
'I have 1 <b>banana</b> and 2 <b>apple</b>s!'
What is the equivalent in JavaScript?
string.replace(regex, newstring) seems to only take a raw ...
I am a little confused how jQuery stores data with .data() functions.
Is this something called expando?
Or is this using HTML5 Web Storage although I think this is very unlikely?
The documentation says:
The .data() method allows us to attach data of any type to DOM elements in a way that is safe from circular references and theref...
Hi
Is it possible to create a form that only displays if the user hasn't ever completed it?
Once it has been completed, the form should never display again.
Thanks
...
Hi,
I would like to have a form that can submit to two different action pages based on a select box.
Meaning if I select in the select box Products, the action would be products.html, and if I select Users, the action would be users.html
I have found many examples that have two submit buttons, but I need only one submit button.
Any ...
If you wanted to re-create the DOM server-side and manipulate it in PHP, how would you choose to go about it?
I'm looking for a fast, multi-user complete server-side web browser that can interface with PHP and run complete Javascript.
Like Jaxer but something I can use with PHP... an extension would be fine, or even an Apache mod.
Ide...
Hello.
var date = new Date();//Mon Mar 15 2010 12:40:05 GMT+0300 (MSK)
var omg = date.getDate() + 19;// 34
date.setDate(omg);
document.write(date.toLocaleString()); //Sat 03 Apr 2010 12:43:00 PM MSK
How do I echo the values 3 (ie: day of month), 4 (April) and the current year?
alert(day); // Need 3
alert(month); // Need 4
Thank ...
Hi,
I've got a quite strange problem here.
I'm calling some simple code via Ajax.Updater:
new
Ajax.Updater('load','http://myurl.com/demo.pl?key=demokey&param1=xyz&param2=abc',{
method:'get',
onComplete:function(transport){
alert(transport.responseText) } });
which gets some code like this:
<img id="2009_04_15_...
this is my code:
$('body').css('cursor','url(http://5211.91.tc/imcur/020.cur),auto');
thanks
...
Hi,
I would like to clone a tag using Javascript (without using any external frameworks like jQueries, so please limit the answer to plain Javascript)
Here is my requirement. Say I have a random div like the following in the document,
<div id='anEmptyDiv' style="display:none">
<div>
Lorem Ipsum
</div>
</div>
And I shou...
Hi, I am trying to parse the following XML with javascript:
<?xml version='1.0' encoding='UTF-8'?>
<ResultSet>
<Result>
<URL>www.asd.com</URL>
<Value>10500</Value>
</Result>
</ResultSet>
The XML is generated by a PHP script to get how many pages are indexed in Bing.
My javascript function is as follows:
funct...
I have got a group of radio buttons that when clicked need to display a corresponding unordered list. I have got as far as showing the correct list according to which radio button is clicked but cannot figure out how to hide the other lists that need to be hidden. So if i click the second benefits radion then the second 'spend' ul will...
i have tried:
<?php include("delete.php") ?>
<?php
....
....
....
if($result=mysql_query($sql))
{
echo "<table><th>Id</th><th>Name</th><th>Description</th><th>Unit Price</th>";
while($row = mysql_fetch_array($result))
{
echo ...