je débute actuellement dans jQuery. J'ai réussi a parser mon fichier xml, mais j'aurais voulu pouvoir afficher les données en fonction d'un critère de filtre, une sorte de requête sql :
I've been struggling with this for days. How can I use javascript to high light a part of the text in a textbox or a textarea?
OR
if the user highlights a part of the text in a textbox or a textarea, how can I say which part of the text is highlighted? (ie: at what character the highlight starts and at what character the highlight ends).
This displays OK on my generated page anyway, but later when I want to use a switch statement on the member type it fails because of the spurious stuff I picked up in the variable
You can't select the 'text' part of an 'a' element with css, e.g. in the statement <a>some text </a> you can't use a css attribute selector a[text = "some text"]{} to style the 'a' element. You can select all named attributes such as HREF, TITLE, etc. Does jquery's .attrib map strictly to the css usage or is there some way I can match on that part of an 'a' element?
I need this because a menu list I'm working with doesn't by default require a TITLE element so I can't assume I can match on this attribute.
I have a search interface that I'm building that uses radio buttons, jump menus and a keyword search text box.
Is there a way to have a little "go" button next to the text field that will submit just the search string in the text box to my searchresults.php page?
Right now, any submit button I put within the page submits all parameters from my radio buttons and jump menus in addition to the keyword values. I would like the keyword entry box information only to be used if there are any values in it and have any other variables (e.g. from the radio buttons) to be null so I don't get a search with keywords AND radiobutton values. Of course, if nobody clicks the radiobuttons, no problem, no values are passed, but I'm sure some pesky user will have some checked and then decide to do a keyword search...
I'd rather send the info to the same PHP results page, so I don't want other values to muddle up the keyword results. I'm sure I could erase the other values with an 'if keywords=anything then other variables are null' statement, but I want the user to think they're only submitting the keywords from the entire page (which is what a 'go' button next to the field would imply) and I thought there might be a simple way.
I'm trying to grab a specific part of a string of text and am wondering how to do it (or if it is possible to do it) with a jQuery selector.Is there any way to get that specific part of the link?
im very new to jQuery and have a problem I cant solve by myself. I have an ul li list with items that match a later following div - the match is the id. That id is matching another following div by id. All elements are dynamically generated and can vary in depth. I have a working set with onclick fuctions, but I want to make this working in jQuery.
I am a beginner in JQuery DatePicker usage. I need to show a datepicker control in my JSP page in which some of the selective dates will be available for selection. How can I enable these selective dates in my JQuery datepicker control.
I have an ul li list with items that match a later following div - the match is the id. That id is matching another following div by id. All elements are dynamically generated and can vary in depth. I have a working set with onclick fuctions, but I want to make this working in jQuery.This is the raw template:
I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed.
In other words, I have a single html text that contains different informations that are displayed alltogether in the same browser. When I print this page, the browser should put each different subject in a separate page and not having it all mixed up. Is it possible? How should i do it?
I'm creating a page where I have multiple articles on one page. I want to display only part of each article and display a "more..." link at the bottom of each of the articles. If the user clicks on one, the rest of the article shows. What would be a good approach to do that?
I have a little problem and I hope that I need to get the path of the URL except for the first slash "/". Now if I use window.location.pathname I get an output like this: /about/about/9081ae1b02/
That is almost right but I need to get rid of the first slash (marked in red) so I get: about/about/9081ae1b02/
How do you print part of an html page using the javascript print() function? Is it possible to put the printable area inside a <div></div> block and print it, or can you use a hidden style then print it?
Is there a site on the www which has some information?
Based on screen size, I'd like to change one of the folder names of a url on the page. I know how to detect screen size with jQuery, but I'm not sure how to change only part of a url.
For example: if screensize > 480px [URL] else [URL]
Given the following standard jQuery code to .get() a (valid) .xml file: $.get(file)
[Code]...
This is exactly what I need, it'll get me the complete XML document structure, including all nodes and texts. If I have this as a string I can then use $.parseXML() to convert this (back) into a XML document.
In jQuery how do I remove a certain part of an id...for example i have a div id='thisisadiv_1'I want to remove the 'thisisadiv_' part This is so I can add/subtract 1 to switch divs.