[jQuery] editing in another form
Hi All, I need to do something like this: in a form, there is a text blob field that a link is provided, if it is clicked, the contents of the field will be copied and edited in another form, when that page close, new contents will be copied back to the original form, possible? the need for this is, the field has a large content, a small part will be shown in the original form, then user can click to pop up a dialog to view and edit the field. Thanks, A.C.
Think outside the box..
I am making a function that works with a set of checkboxes. The checkboxes are a list of files, and my be required by some of the others in the list. I have functions set up to disable the required checkboxes when certain boxes are marked, but im stumped atm on how to make the boxes stay diabled until ALL of the boxes requireing them are unchecked (eg. i 2 boxes require the same file, it is marked and disabled in teh list, if I uncheck on of the 2 boxes requiring that file, it is ernabled and unmarked)
if statment
hello again i want to make a confirmation, something like this: if (confirm('האם אתה בטוח שברצונך ל' + msgTITLE + '?')) { aler(ההודעה נמחקה); } the confirm does pops when i am not placing it inside an IF. if its inside the IF, than nothing happens. why?
.load and Form *NOOB*
Hi, i'm really new to jQuery and i started using the .load method and it works great, i have an index.html page and i call other pages and everything is ok. The problem i'm stuck with is that one of the pages i call has a form and i want to attach events to the form so i can use it with ajax, my question is where do i do this?? and suppose the other pages have forms as well, how can i do with that? The way i'm loading the pages is this, i have links <a href="page1.html">page 1</a> on my index and
Effects in JQuery.
Can anyone point me a plugin similar to http://interface.eyecon.ro/ which has really coool effects. Naveen
[jQuery] Flash sandwich with animating html
Hey all, I'm trying something out which after a bit of research doesnt look like its possible and wondering if anyones got some experice/adivce. I have 3 div's <div id="html_background"></div> <div id="transparent_flash_background"></div> <div id="animating_html_content"></div> They are positioned absolutely and are positioned ontop of each other, they function fine until I want to animate the html content in the 3rd (topmost) div. It works fine in IE7, Safari and FF3, but poor FF2 really doesnt
[jQuery] select onchange trigger
guys help me please ... i have select and options inside it . every option has it own ID ... how to trigger particula option in a way to call onChange of the select here is small demo to explain better <select name="somename" onchange="someFunc(); something.value=this.this.options[this.selectedIndex].id"> <option id="o_id1">text1</option> <option id="o_id2">text2</option> </select> so i can select particular option but have no idea how to force onChange of the select :( $("#o_id2").attr("selected",
[jQuery] select onchange trigger
guys help me please ... i have select and options inside it . every option has it own ID ... how to trigger particula option in a way to call onChange of the select here is small demo to explain better <select name="somename" onchange="someFunc(); something.value=this.this.options[this.selectedIndex].id"> <option id="o_id1">text1</option> <option id="o_id2">text2</option> </select> so i can select particular option but have no idea how to force onChange of the select :( $("#o_id2").attr("selected",
[jQuery] select onchange trigger
guys help me please ... i have select and options inside it . every option has it own ID ... how to trigger particula option in a way to call onChange of the select here is small demo to explain better <select name="somename" onchange="someFunc(); something.value=this.this.options[this.selectedIndex].id"> <option id="o_id1">text1</option> <option id="o_id2">text2</option> </select> so i can select particular option but have no idea how to force onChange of the select :( $("#o_id2").attr("selected",
[jQuery] I have a piece of code, but I want to access the current element inside the onmouseover event.
I have this code here: /<script type='text/javascript'> $("td.c_username a[@href*=profile/]").each(function() { content = $(this).parent().html(); $(this).mouseover(function() { $(this).parent().append("<div onmouseout='leave(this);' class='box' style='display:none'><div class='box-head'>Nor</div><div class='box-wrap'><div class='box-row'><a class='boxa' href='#'><div class='boxtext'>View Public Profile</div></a></div><div class='box-row'><a class='boxa' href='#'><div class='boxtext'>Send Personal
[jQuery] Any JQ developers in SF Bay Area, that need work?
Im looking to hire an Ajax programmer for some front-end work. This could be on contract, or full time. We're located in Berkeley, CA
[jQuery] jQuery Form Plugin (jqForm) problem on beforeSubmit callback
My question is pretty simple... I have the code posted above and it doesn't work. To test the problem, load the page (of course lol), click on "Submit" and you'll see a message stating what the script is going to do next, then, click on "Show!". You'll see the value "null" and I don't understand why, I think it should have been "Hello World". The code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
[jQuery] Macro templates for jQuery & UI
Greetings, There has been some conversation on the UI list about templating solutions for jQuery. Ext has a light weight template library which handles basic variable assignment and supporting formatting methods. I finally decided to port the Ext solution to jQuery. I've tried to conform to the UI API in my port. It was suggested that I pass this port onto the general list for feedback and thoughts. My goal here is really to propose the idea. I think UI could benefit from a baaic template library,
[jQuery] Rollover/mouseover need help, I'm confused
Hi guys I am pretty lost right now. I am using Remy Sharp's jQuery Image Loading code. I would like to be able to also add in a mouseover script for my images. I am making a portfolio site and I need the image to be a rollover to show information about the project upon dragging over the image. I really do not want to use flash and would like to keep this all jQuery and Ajax if possible. I'm lost because on my page the only html code is <div id="loadp1" class="loading"></div> the css for loadp1 is
[jQuery] SuperFish
Hello, I have been using SuperFish Menu and on its online documentation it shows various parameters: $(document).ready(function(){ $("ul.nav").superfish({ hoverClass : "sfHover", pathClass : "overideThisToUse", delay : 800, animation : {opacity:"show"}, speed : "normal", oldJquery : false, /* set to true if using jQuery version below 1.2 */ disableHI : false, /* set to true to disable hoverIntent detection */
[jQuery] Event names with periods
Is there something special about events whose names contain periods? This works: $("p").click(function(e){ $.event.trigger('myCustomEvent'); }); $("p").bind('myCustomEvent', function(e) { alert("test"); }); But this doesn't: $("p").click(function(e){ $.event.trigger('my.CustomEvent'); }); $("p").bind('my.CustomEvent', function(e) { alert("test"); });
[jQuery] Trying several things to write to a div in a new window
I've been searching the forums how to write to a div in a new popup window reference? I would think it would be easy, but nothing seems to be working. newwin = window.open(....); $(#someID, newwin.document).append("something"); I even tried as this post mentions: http://groups.google.com/group/jquery-en/browse_thread/thread/38c74fb9aa8883a4/0a3f57796cb6a583?lnk=gst&q=new+window#0a3f57796cb6a583 newin.$(#someID).append("whatever"); where in the window.. <div id="someID"></div>
[jQuery] How to determine if a node is a leaf node
I have a list like, <li>1</li> <li>2 <ul> <li>2.1 </li> </ul> </li> <li>3 <ul> <li>3.1 </li> </ul> </li> I want to get handle to nodes with 1, 2.1 and 3.1, as they are the nodes with no children. How can I do this?
[jQuery] JQuery and offset mouse
Hi everyone!!! I just want to know if it is possible to get (if there exists some function) the offset mouse, coordenates mouse inside a page. Thanks
[jQuery] How to parse html element from an html string? Shouldnt this work....
Isnt one of these supposed to work? They all return null alert( $("#content", $("<div id='content'>abc</div>")).html () ); alert( $("#content", "<div id='content'>abc</div>").html() ); Please advise.
[jQuery] Superfish - No Fade?
When I use Superfish on IE 7 the fade in cause crappy jagged text - I am pretty sure this is because of the fade in effect. How can I turn this off and just have the sub menu show without the fade?
[jQuery] wrap some tag around group of table rows for hide and show
within a table, I would like to hide or show a group of rows in a table. I tried wrapping those rows with a div, then I tried a span. Neither worked. <table> <tr><td>Do Not Change visisiblity</td></tr> <div id="changerow"> <tr><td>Change this row</td></tr> <tr><td>Change this row</td></tr> </div> </table> the work around I've implemented is to place a class tag in each of the tr tag and then doing a show and hide on rows with that class. I was only hoping for a more elegant way. Anyway have any ideas?
[jQuery] Profiling systems to determine if plugin or effect too intensive
Does anyone know a simple way in JavaScript to profile the execution speed of code to determine if a visitor can effectively run a plugin or effect without their browser slowing to a crawl due to a slow computer? I was on friend's laptop and noticed how she had the same OS and browser as myself, but because her laptop quite simply sucked, she saw everything just dragging and at one point had to close the browser the animation was taking so much processing power. Even simply scrolling was a chore.
[jQuery] jquery Load Event not working!!!
i am trying to use the load funtion of jquery but its not working $(document).ready(function(){ $('img.tooltip').load(function(){ alert('h'); }); }); http://www.unirazz.com/test.html on test server its not working on both IE n FF. but on local its working in FF but not in IE. any help? thnx
[jQuery] cluetips problem- no background
Howdy, I am using the plugin cluetip 0.9.6 and am having a problem with the formatting of a long tip. I had cluetips working perfectly on one of my applications. However I just had a case where the tip text is not having a background applied (i.e. the text of the tip is overlayed directly over the text of the main page). This happened when the text was rather long. I tried the same tip with abbreviated content and it worked fine. Here is how I am invoking: $('a.helpImage').cluetip({local:true, arrows:true,
[jQuery] IE error with $(this).html()
i have some code that ie 7 having a real distaste for. which is surprising since ie is usually spot on.... anyways here's the code in question: if (mode == 5) { $("#"+id+" .item_desc").show(); var items = $("#"+id+" .item").siblings(); jQuery.each(items, function () { var desc = $(this).children(".item_desc").text(); var link = $ (this).children(".item_desc").children("a").attr("href"); var title = $(this).children(".item_desc").children("a").text(); var
[jQuery] Sequence of fadeOut and fadeInt
Hi, I've got the following code for a simple nested menu: <code> <div id="portalmenu"> <div id="me_1" class="menuentry">1st order</div> <div id="me_2" class="menuentry" onClick="portalmenu_openentry(2)">1st order</div> <div class="menuentry invisible" rel="children_2">2nd order</div> <div class="menuentry invisible" rel="children_2">2nd order</div> <div id="me_3" class="menuentry">1st order</div> </div> <script type="text/javascript"> function portalmenu_openentry(id) { // Make all menuentries invisible
[jQuery] Animating color changes using RGB values
I know jQuery is setup to do animations based on math performed on numerical values, so if I supplied it with a CSS rgb() range for it to animate from one color to the next (say red to blue) could it do the color transition?
[jQuery] returning true/false in a javascript function
In PHP I'm used to writing functions like: function checkExistence() { //query database if ($exists) { return true; } else { return false; } } Now I started using jQuery with the same javascript checkExistence() function. var checkExistence = function() { //ajax call to a PHP script returning true or false } I would then use the function when an event occurs on the page: $('#element').click(function() { var exists = checkExistence(); if(exists == true) { //do something } else { //show error message
[jQuery] Row editing/deletion: Best Practices
Hello, I'm creating a form to handle row editing and deletion via AJAX calls. What's the best way to handle edit and delete events The jQuery Way when viewing a list of items? Specifically, how do I identify which row is being operated upon without embedding an id value somewhere? If I aim for the ideal of "unobtrusive javascript," then I'm going to assign a click event to my elements in ready(). However, I need to pass the database row id (for example, employee_id) for my AJAX calls. How should
[jQuery] Validate plugin with .asp.net
I can't use jquery's validate plugin in my asp.net 2.0 form. I made a simple form like the following code <script type="text/javascript"> $(function(){ $('#frmTest').validate({ rules:{ txtName:"required" ,txtComment:"required" ,txtEmail:"email" } ,messages:{ txtName:"Just Add the first name" ,txtComment:"Add some comment" ,txtEmail:"Your email address must be in the format of name@domain.com" } ,submitHandler: function(){alert('Finaly submit it');} });// validate });//ready </script> For the the
[jQuery] 2c on tibco gi?
Hi All, I'm doing some research on Tibco GI: http://www.tibco.com/devnet/gi/ I'm a daily jquery user and love it, the plugins, the community support, etc. All great, thanks everyone, woohoo! GI has been presented to me as a possible path for an enterprise app we (my dev/consulting company) might be working on. IMO, there are some downsides, but I have not examined each very closely: 1. possible issues integrating 3rd party js components (like some of the schweeeet jquery plugins) 2. proprietary framework:
[jQuery] Find by ID
Hello, How can I find an item in my page by ID? Thanks, Miguel
[jQuery] Evaluating javascript inside of html fetched via $.get
Hi All, We have an interesting problem... we are fetching html via $.get to be appended to the page. The pages we're fetching also have script tags in them and use $(document).ready to attach event handlers for those pages. The problem we're having is that those $(document).ready methods never get fired. Further, we don't seem to be able to call the methods from those separate js files included, although we do see that the js files were pulled in (via firebug) and placing alerts in those pages do
[jQuery] Continuous animation
I have a bunch of images inside of a container that is 250w x 300h. The overflow for the container is hidden. What I want to do have a looping animation of the images. In most of the examples I have seen they are based on click events and they fly in. I want the images to slowly just move across the div almost like a flash piece. Can anyone point me in the right direction? Thanks Dan
[jQuery] jQuery tablesorterPager problem
Hello everybody! I have a little problem with jquery tablesorterPager plugin. In my table i have a checkbox for each row of data. I can check them while i navigate through the table. In the same page, i have a button that trigers: $("table.tablesorter").each(function(){ $ (this).find("input[@type=checkbox]").filter(':checked').each(function() { alert($(this).attr('id')); }); }); when the code get executed, i only get the alerts for the checkboxes that are checked
[jQuery] [OT] best web 2.0 ads and mailing ?
Hi everybody This is pretty much off topic, so I dont mind if this gets moderated out... My agency is in the process of creating marketing for some new products, and I would like to find neat examples. Do you know nice ads or mailings, from webagencies or hosting companies, that are promoting services labeled "web 2.0" or similar ? I am especially interested in things targeted at a non-specialist audience. thanks -Olivier
[jQuery] Opera and AJAX getScript problem
Hi! I've small problem here. I need to GET and execute remote JavaScript: var query = $('#query'); $.ajax({ url: query.parent().attr('action'), dataType: 'script', data: { query: query.attr('value') == undefined ? '' : query.attr('value') } }); The script generates following query: GET /cities/?_=1204214639038&query=test HTTP/1.1 with following headers: "SERVER_NAME"=>"wifidb.pl", "PATH_INFO"=>"/cities/", "REMOTE_HOST"=>"127.0.0.1", "HTTP_ACCEPT_ENCODING"=>"deflate, gzip, x- gzip, identity, *;q=0",
[jQuery] Load SimpleModal with getScript and close at window.load is not working!
Hi, Here's the thing, I'm using the SimpleModal plugin to show a modal dialog on my page. It doesn't really matter which plugin I'm using. Well, I think it doesn't but I haven't actually tested any other plugins in this scenario. When you load any page, the modal dialog will be opened at $ (document).ready(). The idea is to show a modal dialog saying that the page is loading. Then, at $(window).load() I close the modal dialog cause this event will be fired as soon as the page stopped loading. The
[jQuery] jqModal H[this._jqm] is undefined
I have a web application. There are 3 jsp's and on two of them I have jqmodal. On the one it is working awesome. No problems. But on the second page it gives the error that H[this._jqm] is undefined. I ran it through firebug and it seems as though the _jqm is not being created. The code for the jqmodal is identical on the two pages. I used copy and paste. I'm using the same script library in both pages. I even copied the div it was using. I'm at a loss...it just doesn't make any sense... any code
Next Page