[jQuery] Modifying href attribute values
Can anyone provide guidance on how to modify href attributes in this way: Markup: <a href="22_foo.html#foo22-name"> Modify to: <a href="path/to/foo22-name.html"> i.e. removing everything up to and including the #, prepending a fixed path value and appending ".html" Thanks Jonny
[jQuery] MVC for javascript application - Or, what works best?
Hi, I need to create an application which shall be interacting with a webserver that shall primarily serve all data as xml. The application is more like a CRUD application - it shall parse xml, display the values as form fields. Also, it needs to submit the form fields as xml with the same schema as it was recieved (rather than the regular form post mechanism). This xml receiving / posting-back concept is something that cannot be changed / done away with. I need to create an architecture for this
[jQuery] Working with hash?
I need some advice on working with the hash, are there any good plugins or alike that I could use? The bestw ould be something like mysite.com#name=jonas&phone=12345 Then I'd do something like var myHash = getHashObject(); the object would then be soemthing like { name: 'jonas', phone: 12345 } And something to write to the hash var myNewHash = { name: 'donald', phone: 54321 } writeHash(myNewHash); I guess there isn't anything exactly like that but something similiar would be nice if anyone know something.
[jQuery] test for .is(":visible") fails in Safari
Dear all, I'm not sure if this is a jQuery question or not, but I got the following code to work in FF, but it fails in Safari: $(".thumb").click(function() { var imgName = $(this).attr("alt"); var el = $("#dropdown"); if (el.is(":visible") && $("#pic").attr("name") == imgName) return; else { el.fadeOut("slow", function() { $("#loading").show(); el.find("#textContent") .text(pix[imgName].aText); el.find("#pic") .attr({"src": pix[imgName].imgSrc, "name": imgName}) .load(function(){ el.fadeIn("slow");
[jQuery] TextArea CountDown
Hello, Does anyone knows a good JQuery countdown that displays the number of remaining characters on a text box? Thank You, Miguel
[jQuery] Find Element. Could someone, please, help me? Thank You
Hello, On a plugin I have the following: var legend = fieldset.find(':first'); var body = jQuery(document.createElement('div')); Instead of creating a div for the body I would like to get a existing OL in the fieldset and make it the body. How can I do this? Thanks, Miguel
[jQuery] Superfish -- Licensing for shadow.png & arrows-ffffff.png?
The two images shadow.png & arrows-ffffff.png are included in the zip archive of Superfish. Are these also dual licensed under the MIT and GPL licenses? What about the stylesheet?
[jQuery] Bassistance Accordion and Others
Hello, I have been trying JQuery's Bassistance Accordion and a few others but until now I wasn't able to make it work with a form ... For example, consider the following form structure: <form action="Create/Account"> <fieldset id="f1"> <legend><a href="#f1Leg">Personal</a></legend> <ul id="f1Content"> <li>Name: ...</li> <li>City: ...</li> </ul> </fieldset> <fieldset id="f2"> <legend><a href="#f2Leg">Contacts</a></legend> <ul id="f2Content"> <li>Email: ...</li> <li>Phone: ...</li> </ul> </fieldset>
[jQuery] Superfish z-index issue
I'm having trouble resolving the z-index issue. I tried the solution at http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/ but it did not help. You can see the problem at http://www418.pair.com/cmitwex1/www.reedandpetals.com/index.php?option=com_igallery&view=gallery&Itemid=15 I've also tried changing z-index values of the gallery but so far nothing has worked. I'd be grateful for any help or suggestions!
[jQuery] Cycle not working with other plugins
I'm trying to get Cycle to work with Kwicks, actually just trying to get it to work on this page: <http://tinyurl.com/c33e28> I've got the cycle working on its own but not within this page. David
JSON Data Parameter
I dont know what im missing, but whenever i change my JSON call from $.getJSON("/purchases/suppliers_list_ajax_row", {id: e, time: "2pm" }, function(data) TO $.getJSON("/purchases/suppliers_list_ajax_row", {id: e, }, function(data) My function completely stops working
[jQuery] Is jquery's position() function not browser independent?
I wrote the following code - --------------------- var ref= $('span#timezone_edit').position(); ref_left = ref.left - 125; ref_top = ref.top - 45; //I want to display a div just over that span#timezone_edit var zonepickerBox = $('div#time_zone_picker'); $(zonepickerBox).css('display', 'block'); $(zonepickerBox).css('position', 'absolute'); $(zonepickerBox).css('left',ref_left+'... $(zonepickerBox).css('top',ref_top+'px... --------------------------------------... But the div does'nt appear as I want
[jQuery] what's the good things coding like this:(function(){})();
(function(){})(); what's the first () means? is this a standard grammar?and why coding like this?
[jQuery] wrap some tag around group of table rows for hide and show
Ok let's see if this post works... The last couple tries didn't! I was reading through this year-old thread which I found googling since I'm doing something similar, perhaps someone could give me a couple tips. Here is the page with the example I'm dealing with: http://johnrdorazio.altervista.org/SitoFlatnukePersonale/index.php?mod=04_Mia_programmazione/04_Tabelle_con_Jquery Clicking on the checkboxes, two rows should appear (which were hidden from the beginning) in which more information can be
[jQuery] Simple toggle between slide up slide down and changing paragraph html contents not working...
Hello, I've been struggling with a very simple code that I can't get to work ... Simplified html : <ul> <li> Item 1 <p class="toggle">Hidden contents 1 <a href="#" class="down">Click to show</a> </li> <li> Item 2 <p class="toggle">Hidden contents 2 <a href="#" class="down">Click to show</a> </li> <li> Item 3 <p class="toggle">Hidden contents 3 <a href="#" class="down">Click to show</a> </li> </ul> This is what I want to do : When you click on a Click to show link it shows the hidden contents contained
[jQuery] help with menu and show/hide divs
I know I am doing something stupid , but can't figure it out. I have a menu of three items <a href="#firstDiv">first<a> <a href="#secondDiv">second<a> <a href="#thirdDiv">third<a> I then have 3 divs <div id="container"> <div class="content"> <div id="firstDiv></div> <div id="secondDiv></div> <div id="thirdDiv></div> </div> </div> the first div is shown by default, what I need to do is when menu items are clicked that the div shown (first,second,or third) is hidden and the selected div is shown. I
[jQuery] Repeating background with a radial gradient?
There are many examples in flash where you can use a full screen tiled background image and a radial gradient to hide the tiled effect. Here is a link to one of those examples: http://www.flashden.net/item/pack-20-backgrounds-wood/12504?ref=solo1artist How would I get this kind of effect with jQuery? I would need a radial gradient applied to a tiled background with some kind of an opacity to it. Are there any plugins available to do this? Thanks all! -Tabbu
[jQuery] Invalid Argument in IE7/8
My page is throwing an invalid argument error on line 23 of jQuery, version 1.2.6. Is there any reason this should be happening? It seems that because of this, the rest of my script is not running. I am using the cycle plugin as well as jScroll Panel. Example: http://67.207.148.241/home
[jQuery] Need clicking twice to trigger click event
I'm doing a dropdown menu witch shows on click. If one is already open it should close when another one is opened. I've currently got it working on the first click, but afterward I need to click twice to trigger the event. A slimmed down version of the html looks like this: <ul id="toolbar"> <li><a href="#">Link1</a></li> <li><a href="#">Link2</a></li> <li id="tag" class="slider"> <a href="#">Link1</a> <ul> <li><a href="#">Sublink1</a></li> <li><a href="#">Sublink2</a></li> </ul> </li> <li id="share"
[jQuery] Form plugin ajax file upload works in Firefox but not IE
I have a very complex application I have constructed to create and manage IVRs on asterisk servers. I make heavy use of jquery and have had few issues until now. I do all my primary development in firefox and everything is working fine there, but the tool for uploading prompts is not working in IE, only in firefox. I am aware that the form plugin uses a hidden iframe to perform the file upload. I am having difficulty tracking this down - there is no apparent error...just nothing happens. Nothing
[jQuery] .getJSon
Sorry if this is a duplicate post - doesn't look like the last one went through. I've seen several examples of how to process json data with .each when the field names come over with json. My data, howver, looks like the following: {"aaData": [ ["1001-00-1535.000","Tenant Improvements"], ["1001-00-1558.000","Selling costs"], ["1001-00-1560.000","Financing Fees"], ["1001-00-1560.001","Financing Fees - Legal"], ["1001-00-1565.000","Lease Costs"], ["1001-00-1565.001","Lease Costs -Legal"], ["1001-00-1565.002","Lease
[jQuery] Mouseover twice to fire trigger?
For some strange reason, the first time I attempt trigger an event using mousover , I have to mouseover an element .accordionElement twice (in, out, in of the element) before the trigger fires in Firefox 3. Once I fire the trigger once on that particular element, I can mouse over it normally until the page is reloaded, then the same thing happens. I searched google and found others with similar problems but now resolution. Works fine in IE7. Code below. Any ideas? TKS ________ $(document).ready(function(){
[jQuery] Very New To JavaScript\JQuery - Mouseover and Mouseout Question
Hi there, I am having trouble grasping the usage of mouseover and mouseout when dealing with a menu. I created a list of links and in testing, I've been able to hover over each link and they will animate, move over 10 pixels. On mouse out, they will move back. That's great, except when I hover over them, every link in the list moves. I want each link to move over as I only hover over that particular link. Here's my markup: <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script>
[jQuery] Please help me SPEED UP my dev. MySQL => PHP => JSON => AJAX => jQueryUI
Before taking on a challenging task, please give me some ideas to speed up my development! Just as the topic is saying, I will primarily be doing: MySQL => PHP => JSON => AJAX => jQueryUI I used to work with CakePHP but I have little experience with JSON. Any hints on your favourite tools and helpers (MVC frameworks, MySQL tools, JSON parsers, jQuery extensions etc.) are greatly appreciated. If you think I should modify my "route", for example XML instead of JSON, please put forward the pros and
IE6 Crashed
I have any php code for contact form in my cms . this form upgrade to jquery and form plugin . jquery worked with FF / Opera / Safari / Chrome / IE7 . . But crash with IE6 . when submit and send data and waiting for request IE6 crashed and not worked !!!! how to fix ??
Having trouble figuring out how to rebind after Ajax call
Hi, I read the stick note and realized why my events stop working after an Ajax .load call. I read the articles on rebinding, but I am having trouble getting mine to work properly. In my case I have a set of links. The links sit inside a TABLE, which in turn is inside a DIV tag. When my link is clicked, my event rerenders the TABLE. I am trying to figure out how to re-bind the links to use my original click event. Here is what I have, and I've tried a few variations, but I can't get this to work
[jQuery] custom function to run on specific field with jquery validate plugin
Does anybody know of a way to run a custom function on a specific field if it is incorrect when validating an entire form? TIA
[jQuery] Flying clouds like in http://devthought.com/
Hello. I want to add flying clouds like on http://devthought.com/ on my site. Do anyone know how to do that? Maybe any suggestions?
[jQuery] how to do error handling in ajax
Hi Jquery guys, I am using below syntax for ajax error handling, but I never got any specific error details. its always undefined. function Error(xhr, ajaxOptions, thrownError) { // dump is javascript dump dump(xhr, true); dump(ajaxOptions, true); dump(thrownError, true); } pls suggest what to do. note: for dump: http://www.netgrow.com.au/files/javascript_dump.cfm
[jQuery] find among same elements using name
Hi, i have a table with checkboxes which allows user to select all row/records or none. they have all the same name : row i would like to know if there is an easy way to find them in my table ? i was thinking about something like : $("#grid").find('td:row').each(function(i) { ... });<br clear="all"> when td:row would mean each <td> having name = row. is there something like that ? thx. A.
[jQuery] Block UI and Overlay IE 6
Hello, I trying to set the full width for overlay for Block Ui (malsup), but the overlay cover only the window width( not the document width). Well, that seems to be bug of block ui, but is there any way to fix it on my site? The problem can be visible, when page has over 1000px width. Then you try to watch site on some small resolution, like in palmtop or sth, where you have less then 800px of width. The effect is not very well, eg. if we have 800px resolution of width, and you scroll to the right,
[jQuery] Upgrade to jquery 1.3.2 and the ajax function not work....
Width jquery 1.2.6 i have a function as function get_dati_gerachia(volte){ var chosenItemText = $("select[name='dati_gerarchia']").val(); a="volte="+volte +"&id=2&ordine_per=2&pagine=1&master=4&dati="+chosenItemText +"&livello=3&menu_pagine_aggiunte=6"; $.ajax({ type: "POST", url: "ad/dati_gerarchia.php", data: a, success: function(msg){ ..... And a php function with a .... $volte=$_POST['volte']; $id=$_POST['id']; ..... eccc When i have chenge the jquery
[jQuery] getting data using html attribute
Hi, i have several html tags with some additional attributes like 'type' or 'abbr'. for example : <span class="nodeLabelBox repTarget"><<span class="nodeTag">th</span><span class="nodeAttr editGroup"> <span class="nodeName editable">id</span>="<span class="nodeValue editable">col_1</span>"</span><span class="nodeAttr editGroup"> <span class="nodeName editable">class</span>="<span class="nodeValue editable">ColumnHeader</span>"</span><span class="nodeAttr editGroup"> <span class="nodeName editable">align</span>="<span
[jQuery] JSON Newbie
I'm new to jquery and json. I've looked at lots of examples of how to process json data but they all seem to have field names that come across in the data and are used in the foreach processing. My data looks like this: {"aaData": [ ["1001-00-1535.000","Tenant Improvements"], ["1001-00-1558.000","Selling costs"], ["1001-00-1560.000","Financing Fees"], ["1001-00-1560.001","Financing Fees - Legal"], ["1001-00-5799.000","Bad Debt Expense"], ["1001-00-5800.000","Amortization"], ["1001-00-5805.000","Depreciation"],
[jQuery] questions about binding events Click to flag this post
When I try to bind events like within ajax call: $.ajax({ type: 'POST', ........................... success: function(msg) { $("#dmid img", msg).each ( function() { $(this).bind('mouseover', handler) ............................... problem is the event is not bound unless I do something like: $('#firstdiv').html(msg) $("#dmid img").each ( function() { $(this).bind('mouseover', handler) Any idea why we cannot bind events when context is other than the current loaded document? Another question: I have
[jQuery] How to repeat Jcarousel
Hi, I am using JQUERY plugin Jcarousel in one of my project. Is this possible to create two carousel in single page? Whenever I try to the 2nd one just display a plain unordered list. Any help will be appreciated. Thanks
[jQuery] Nonintegers for controls in static_controls.html example?
I tried to post this yesterday but was not a member, so pardon me if you see this twice. I run about 15 forums and am not an idiot i promise. I am under a deadline with a scary client who is "demanding" this functionality. go figure. Simply put, I, too, am trying to use a noninteger as some others but cannot figure out the fix. I am using the static_controls.html example and almost have it figured out. The controls are numbered 1 -1 0 by default. Click on 1 and it goes to teh 1 list item which in
[jQuery] [autocomplete] Force open the search list
I have a text field with autocomplete and now I want to force the list of matches to show (like when writing a letter). Say, the user writes "hello" then unfocus the field. Is it possible to add an action to a button so when it's pressed it shows the autocompletematches for the field where the user wrote hello? Something along the lines of $('#field').showResults(); If there isn't a function for it already, how can I add it manually to the jquery.autocomplete.js file?
[jQuery] [autocomplete] Is it possible to get the array it is working on?
Or maybe this can be done ina nicer way, let me explain what i want to do When you enter something in the field and it matches with one of the items in the list I want to change the style of the field to bold. I tried this $("#name").result(function(event, data, formatted) { $('#name').css({fontWeight: 'bold'}); }); But it has 2 drawbacks: 1. It is only executed if I select the item form the autocompletelist, not if the user simply writes exactly the right thing. 2. If they select the item and the
[jQuery] slideDown content disappearing in IE7
My content in my slideDown is disappearing after the slideDown is complete. I have tried: zoom:1; - this make the h4's display inline. zoom:1; display: block; - this makes them disappear min-height: 1% - they disappear The page can be found here: http://www.trinityacademy.org/summer-sessions http://www.trinityacademy.org/summer-sessions -- View this message in context: http://www.nabble.com/slideDown-content-disappearing-in-IE7-tp22507968s27240p22507968.html Sent from the jQuery General Discussion
Next Page