jquery

Php session variable bug

Hello. There is a problem with session variables in my web-application. I have several types of documents, when user want to edit it, he pushes a button and php record number of document to $_SESSION['patent_number'] via GET method. All fine when launch application. I test it with 2 documents with 2 different numbers. In the begining al...

Problem with jquery code (newbie)

I'm pretty new to jquery and I have an issue I need help with. I have created a news section on my page, on the left is a list of the news items, once an item is clicked, the details open on the right. Everything works fine except that I noticed that I am HIDING and not REMOVING the details that are inactive. So let's say I have 10 tim...

Click event does not fire default action

So, I have this <ol> with some events attached with the help of jQuery (1.4.2). All is done in the $(document).ready()-call. The weird thing is that the click on the <li> does generate a click on the correnct <a> (I can see this by uncommenting the console.log()-part) but it does not navigate the UA. Why is this? Does event.stopPropagat...

How do I stop jQuery validate from validating automatically?

I have a textbox on which I have made an onblur script that takes the input and converts it into a date. I'm using jQuery validate-plugin to validate the input, but the problem is that the input from the user is often not valid until I've parsed it, which makes the automatic validation that jQuery validation makes, both redundant and unw...

How to write a text in two textbox control at a time

I am working with jquery, i want to write a text in two textbox control at a time. ...

JQuery dialog opens 2 dialogs after first use

Im using JQuery dialog and open an iframe inside it in the following way $('#div1').dialog("destroy"); if (criteria1== "L") { $("#div1").html("<iframe id='dialogFrame1' src='../WebPages/abc.aspx' Height='100%' Width='100%' frameborder='0'></iframe>"); } else { $("#div1").html("<iframe id='dialogFrame2' src='../WebPa...

Probable DOM issue trying to hack a google books preview into MediaWiki

Firstly here is what I am trying to add to my mediawiki skin. http://www.urbanvintner.co.nz/books/ It's a quick and dirty hack of Simple Modal using Google's Book Preview and Dynamic Link APIs. Problem being I can't for the life of me figure out how to address the elements within the mediawiki installation. At least I'm assuming thats...

Plugin: Kwicks for Jquery works perfectly with Jquery 1.2.6 but not 1.4.2

This is about the (mootools-like) kwicks Jquery plugin: http://www.jeremymartin.name/projects.php?project=kwicks I have the same problem as this guy here http://stackoverflow.com/questions/1480691/jquery-kwicks-issue (kwicks for jquery works fine on test site but not on live site) but in my case I know what the problem is, I only can't ...

jQuery -To get minDate value and set that value

Hi, I have a date field and want to set minDate for the same.There is one custom range that i have defined for beforeShowDay that make some of the date as selectable.I want to set the first selectable date using setDate function. How can i achieve the same ? e.g: when i use this on ready function, jQuery('#startDate').datepicker("setDa...

jquery find command

Using .find() how to find whether radio button exists in a div or else raise an alert <div id="emp_form"> </div> ...

Add options to a DropDownList using jQuery in Code Igniter

Hello, I'm looking for a way to add a custom option to a drop down select list with Jquery. So the user would click the drop down, and be presented with a list of options, the last being 'add other...' once they click this they can then enter an option of their own (through a pop up, popover, directly inline or however.) There's the po...

Accessing properties of html element inside javascript function using $(this) gives undefined

I am calling a function test() on an anchor tag like this:- <a class="link" onclick="test();">Hello</a> And I am trying to access the class of the anchor inside the function test():- function test() { alert($(this).attr("class")); } But this alerts undefined. I know that calling onclick=test(this); instead and having the followin...

How to create master template for html pages

I have some ten html pages with same header ,footer ,left and right navigation tabs can i have one master template so that i will refer header and footer and navigation tabs from each page without using any asp controls . ...

Send header to "redirect" entire window?

So in my php authentication library, if someone is not logged in, they are redirected to the home page: redirect('home/index'); The problem is that I have some modal windows that load content through ajax. If a user somehow is logged out (but still on a page where they're "logged in") then the modal shows the login page since the modal...

how to get the selected value from dropdown in jQuery

Hi, I want to get the next value of selected value in the dropdown by JQuery. how to do ? ...

Position Jquery UI Dialog on mouse position not working in IE 8

I am using Jquery UI Dialog and its working fine in FF/Chrome/Opera but there's some issue with IE, I am having latest version of JQuery UI 1.8.5 and all the workarounds setting position:absolute etc are not working at all, What I need is if my anchor tag is near to end of the browser window and there's not enough space for the ui dial...

Looping over ul li's using jQuery and storing current nav item

Hi, I am looping over the first set of li a tags in my UL and getting the height so that I can deliver a different background image if the a > span > span text wraps across two or three lines. I need to be able to store these specific buttons in an array, so that when I mouse over them, the current span with double line text receives a...

Saving text and inserting it after a specified variable

Hi all, there's a site with lots of comments. code1 <p>hello ernie</p> <p>this is mark</p> <p>hello ben</p> <p>this is ernie</p> <p>hello mark</p> <p>this is ben</p> Now I want to collect all comments containing 'hello' and insert the phrases with hello after all comments. $("p:contains('hello')").insertAfter($("#comments")); 'he...

JQuery dialog working alternatively

I have this piece of code to open up a JQuery dialog with specific controls according to 2 links. Now it works fine on the 1st attempt. But the 2nd time when I click the link to load the JQuery dialog, it opens a blank dialog. On closing it and clicking the link again it opens the right dialog. On repeated trials it throws me an error in...

How can I decode a URL with jQuery?

How can I decode a URL using jQuery? My url is http%3A%2F%2Fdtzhqpwfdzscm.cloudfront.net%2F4ca06373624db.jpg ...