Am trying to disable the links for my drop down menu, just the parent links because there is no page for the parent links only the drop down. I dreamweaver I simply used a hash in my code but now am in wordpress and this is not possible.. gave me the code
Code: <script type="text/javascript"> var $j = jQuery.noConflict();[code]....
Which did work, but for some reason does not now.. I would only like to disable those links that have a drop down menu bit[url]....
I'm building a volunteer translation site. In order to constantly update only paragraphs that multiple translators are working on, I need to pass an array to PHP of A: which paragraphs are open, and B: which translations have been submitted and are visible on the user's screen. PHP will then compare this with what is in the database and tell jQuery to add new submitted translation paragraphs or remove deleted ones.I've managed to make a string of all the open Div's and have it updated every second, like this:
function cycle(){ var data = ''; $('.paragraphtobetranslated:visible').each(function(){
I need to select the last children of parent elements
For example
<ul> <li></li> <-This will have the background #1a <li></li> <-This will have the background #1a <li><ul>
[Code]....
So I would need the last children. If there is no nested element then that is considered the last child. I have to write a jquery script to apply a background to the last children. A nested element can have a nested element and then that element's children will be considered the last ones so they will get the background but not the parents of those children. If the item has no children then that item will have a background.
So there are 3 different backgrounds. Each letter a, b c will represent a lighter tone compared to the previous color. C is lighter than B, B is lighter than A etc. So this will have to be a "smart" system in which the ul li will be updated and depending if it is the last one inhierarchyit will not have the arrow.
I'm trying to manipulate items in a table using jQuery, using the parent() and children() methods of the "this" object. I think I'm not understanding how to use the parent and children methods correctly.
What I want the code to do is to show the list and button within the <td></td> when clicked on, and then hide it when the newly shown button appears.
<li>My menu item <ul> <li>my submenu item</i> <li>my submenu item</i>
[Code]...
The problem is that when the mouse goes from the main <li> to the children <li> a mouseout event is generated from the main li.
My idea is that if I can detect that the the mouseout is happening at a child of my main <li> then I should be able to stop the handler with an "if" or something.
Right now I am adding a click function to a div element on the page, it triggers a slideDown() animation. I would like it so when the user clicks on an 'a' link inside the div it does not cause the animation.
Currently it triggers the animation because the 'a' is inside the div that I have a click event for.
I tried checking inside the click function for my div element to see if 'this.tagName == 'A'' but it always says DIV, even when I click on the link.
I also tried adding a click event to all the links that stops any animations, but for some reason its not stopping the animation.[code]...
The following function works fine. I was just wondering if there are any serious negatives to using so many parent, sibling and children type functions?
Think how twitter appends a chunk of list items to the end of the list when you load more results. I'm trying to achieve the same thing without replacing the entire parent with the same content each time 'appendRows1()'
The function needs to support any type of content - the children could be tr's li's etc.[code]...
integrating PHP-HTML-JS I'd need some help for doing the following:I have a index.php including:
<script type="text/javascript"> function filter (phrase, _id){ var words = phrase.value.toLowerCase().split(" ");
[code]....
and a child.php including a table object with the id LIST.I'd need to change the parent.php in order to filter on real-time the table LIST via the FILT input on the parent form. I have tried different values instead of 'this' on the js function calling but nothing succesfully.
Here as there is no link specified it will open a blank page. guys can u please tell me how can i write a condition so that if my href is blank then it will not open any page. the click should not work or else it should load the same page.
I am opening one new window from the current window.... Can any one help me to disable the parent window after opening the new window.... and at the same time i want to enable the parent window after closing the new window.
I've got a JQuery Mobile form working across multiple "pages", even though it is a single HTML file.This is done by placing the opening form tag before the <div data-role="page"id="screen1"> tag, and closing it after the final losing page div tag. Works great.Currently the form validation is properly flagging each field as the user leaves it.The only trouble I am having is making the continue button at the bottom of each screen disabled until the visible invalid fields pass validation.Here's the simplified version of the code:
I want the <a/> in an <li/> to be triggered when the click happens anywhere within the </li>. So given the html...
<ul> <li><a href="javascript:alert('clicked!')">test</a> <span>some other stuff</span></li> <li><a href="javascript:alert('clicked!')">test</a> <span>some other
I have several divs that each have a certain link. How can I make sure that when a link is clicked that it will only change elements that are within it's parent div and not the others?
I have some source code I want to run a javascript function on.
Here is the HTML
Code:
I need to pass to arguments to a function; the <a> and the div id. I am attempting to do this using onClick and you can see that I have passed the <a> using 'this'.
I thought that the parentElement of the <a> would be the div and would have used getElementById, but this is not the case. How can I pass both the link and the div to the function in this scenario?
From my web page I open another link in another browser window. That new window is composed of two frames. I have a <a href="....."> link on the second frame of that window. What I want is that when user clicks on the link in the new window's second frame, the response should open in the original browser window that opened this secondary window(which is made of two frames). How can I do it?I hope i have explained my problem.
I tried to used window.opened.location.href but it didnt work because I have frames in my secondary window...
Is there a way to have a link in a modal dialog window sent back to the modal dialog's opener? So far I've managed to get it to open a new page in the dialog window, and open a completely new window.
I need to have a link open in the parent window after opeining one on my site. What the user does, is he/she clicks a link in their browser. that intern opens another window with a input field and a submit button. after they hit submit, i want the next page to load in the window they first clicked the link for the pop up. how would i do this?
I have a single javascript file that contains all of my javascript functions. Each of the these functions are particular to different pages on my entire site. How can I create logic that will only allow those functions to work when certain elements or identifiers are present on a page?