[jQuery] problem handling mouseover event
hi, i have several images (more icons) on the page where i want to show a div like a tooltip with more links on mouseover of these images. the class of these images is .but_plus i have a div before body for the tooltip div id=navoverhere are more links/div .but_plus{ position:relative; z-index:5; } #navover{ position:absolute; display:none; width:200px; height:100px; z-index:1; background-color:#cc; } the z-index of the images is higher than the overlay, because the image should be visible in the left top edge of the overlay even when the overlay is visble. my problem is in handling the mousover events $(document).ready(function(){ $(.but_plus).mouseover(function(){ $(#navover).hide(); var pos = $(this).offset(); var posleft = pos.left; var postop = pos.top; $(#navover).show(); $(#navover).css({'top' : postop, 'left' : posleft}); $(#navover).mouseout(function(){ $(#navover).hide(); }); }).mouseout(function(){ //still empty at this time }); }); anybody an idea how to handle the events in this case... my problem actually is, that the overlay doesn't disappear when i shortly move the mouse over the image and directly out (top or left direction) if i attach an mouseover and out (or enter leave, hover) to the image, i have no idea how to handle the display of the overlay... i don't know if the user leavs the image eg. in the top direction or the bottom direction... in the last case the overlay must be shown best regards m cologne
[jQuery] ajax post data json - php receives only post data, no json
hi... i have a normal email form, where the user can send an email with some data... at first i send it with normal post (no dataType in jquery)... but it was difficult to handle the returning messages from php, e.g. validation messages or ok messages... therefor i tried dataType json... like the code below... now i con better handle the returning messages, but i wonder why i still get single post data in php ($_POST['name'], $_POST['email)'] etc and NO nested json!... is there something wrong with my data format? in firebug i also see only single post data... no json format when posting best regards m, cologne ## $.ajax({ type: POST, url: /mail/process.php5, data: {name:name, email:email, message:message, n:textmail, i:pic}, dataType: json, success: function(res) { if(res.result == 1) { $('#dialog').html(pWE SEND THE EMAIL + res.message + /p); } else if(res.result == 0) { $('#dialog').html(pERROR + res.message + /p); }
[jQuery] Re: ajax post data json - php receives only post data, no json
@donb: thanks... i thought it was in both directions... On 12 Apr., 16:46, donb falconwatc...@comcast.net wrote: $_post sends the data which 'arrives' at your PHP page as $_POST array elements. That's the nature of an HTTP post action. By indicating a 'json' datatype, the data your script returns will be expected to be in JSON form. On Apr 12, 7:32 am, mcologne blueameri...@web.de wrote: hi... i have a normal email form, where the user can send an email with some data... at first i send it with normal post (no dataType in jquery)... but it was difficult to handle the returning messages from php, e.g. validation messages or ok messages... therefor i tried dataType json... like the code below... now i con better handle the returning messages, but i wonder why i still get single post data in php ($_POST['name'], $_POST['email)'] etc and NO nested json!... is there something wrong with my data format? in firebug i also see only single post data... no json format when posting best regards m, cologne ## $.ajax({ type: POST, url: /mail/process.php5, data: {name:name, email:email, message:message, n:textmail, i:pic}, dataType: json, success: function(res) { if(res.result == 1) { $('#dialog').html(pWE SEND THE EMAIL + res.message + /p); } else if(res.result == 0) { $('#dialog').html(pERROR + res.message + /p); }
[jQuery] Re: jQuery.noConflict() and firefox 2: errors - is this a bug?
if i put first jquery.js and then prototype, i don't need jQuery.noConflict(). it works without. i assume that jQuery.noConflict() does not work properly. On 18 Mrz., 01:51, James james.gp@gmail.com wrote: For jQuery.noConflict(), according to:http://docs.jquery.com/Core/jQuery.noConflict NOTE: This function must be called after including the jQuery javascript file, but before including any other conflicting library, and also before actually that other conflicting library gets used, in case jQuery is included last. noConflict can be called at the end of the jQuery.js file to globally disable the $() jQuery alias. jQuery.noConflict returns a reference to jQuery, so it can be used to override the $() alias of the jQuery object. In other word, put your jQuery.noConflict(); before you include your prototype.js file. On Mar 17, 2:37 pm, Eric Garside gars...@gmail.com wrote: Do you have a link to an accessible site? It would help substantially in debugging the issue. On Mar 17, 2:50 pm, mcologne blueameri...@web.de wrote: the path is correct... it works with firefox 3... and: if i remove the prototype.js, it works with firefox 2 too... On 17 Mrz., 19:07, MorningZ morni...@gmail.com wrote: That error would *have* to mean that the jQuery library is not properly loaded (probably the wrong path/location to the jQuery file) Use Firebug's Net panel to confirm that it is properly found/loaded On Mar 17, 1:05 pm, mcologne blueameri...@web.de wrote: hi, i have problems using jQuery.noConflict() and firefox 2. my firefox version: pc firefox 2.0.0.20 the same with mac firefox 2.0.0.4 i'm using only the first example fromhttp://docs.jquery.com/Using_jQuery_with_Other_Libraries it doesn't work, the following errors occur in firebug: Security error code: 1000 jQuery(document).ready is not a function what shall i do? anybody an idea if this is a bug? best regards m code i use below !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleUnbenanntes Dokument/title script src=http://www.prototypejs.org/javascripts/prototype.js;/ script script src=../scripts/jquery/jquery-1.3.2.js/script script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script /head body /body /html
[jQuery] Re: jQuery.noConflict() and firefox 2: errors - is this a bug?
the path is correct... it works with firefox 3... and: if i remove the prototype.js, it works with firefox 2 too... On 17 Mrz., 19:07, MorningZ morni...@gmail.com wrote: That error would *have* to mean that the jQuery library is not properly loaded (probably the wrong path/location to the jQuery file) Use Firebug's Net panel to confirm that it is properly found/loaded On Mar 17, 1:05 pm, mcologne blueameri...@web.de wrote: hi, i have problems using jQuery.noConflict() and firefox 2. my firefox version: pc firefox 2.0.0.20 the same with mac firefox 2.0.0.4 i'm using only the first example fromhttp://docs.jquery.com/Using_jQuery_with_Other_Libraries it doesn't work, the following errors occur in firebug: Security error code: 1000 jQuery(document).ready is not a function what shall i do? anybody an idea if this is a bug? best regards m code i use below !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleUnbenanntes Dokument/title script src=http://www.prototypejs.org/javascripts/prototype.js;/ script script src=../scripts/jquery/jquery-1.3.2.js/script script jQuery.noConflict(); // Use jQuery via jQuery(...) jQuery(document).ready(function(){ jQuery(div).hide(); }); // Use Prototype with $(...), etc. $('someid').hide(); /script /head body /body /html
[jQuery] selector :contains different behaviour in firefox and msie 7
hi, i have a strange behaviour when parsing the xml below: $.get('/test/Internetschuhe.XML', function(data) { $(data).find('item').each(function() { var $entry = $(this); var $sizenotnull = $entry.find(stock:contains('0')); alert($sizenotnull.length); in firefox it works... the alert is 1 and thats right... i have one size with the stock 0 in msie7 the alert is 0... why... is it a bug? best regards m cologne ?xml version=1.0 encoding=iso-8859-1 standalone=no? itemdata item number131001051/number numberformated131 001 051/numberformated producer id7558/id nameECCOLET SKO GMBH/name iln579260676/iln vatidDE118625892/vatid /producer produceritem80184-01001/produceritem articlesystem id131/id textStrassenhalbschuhe modisch/text systemSONST/system systemhierarchy1234/systemhierarchy structures structure id1/id textHerrenschuhe/text /structure structure id13/id textSchnürhalbschuhe/text /structure structure id131/id textStrassenhalbschuhe modisch/text /structure structure id131/id textStrassenhalbschuhe modisch/text /structure /structures /articlesystem maingroup idSH/id textSCHUHE/text /maingroup colorschwarz/color attributes attribute idFarbe/id valueschwarz/value /attribute attribute idMaterial/id valueGlattleder/value /attribute /attributes variants variant idSOPO/id textSonderposten/text /variant /variants vat idnormal/id value19,00/value /vat sizetable idN02/id textGERMANY/text /sizetable standardN/standard itemgroups itemgroup idINTERNET/id /itemgroup /itemgroups pictureT:\Internet Bilder schuhe\131001051.jpg/picture sizes size sizeid23/sizeid sizebarcode400/sizebarcode sizeshort 40/sizeshort sizelong 40/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency npp 21,15/npp nppcurrencyEUR/nppcurrency sp 59,95/sp spcurrencyEUR/spcurrency stock0/stock /size size sizeid24/sizeid sizebarcode410/sizebarcode sizeshort 41/sizeshort sizelong 41/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency npp 21,15/npp nppcurrencyEUR/nppcurrency sp 59,95/sp spcurrencyEUR/spcurrency stock1/stock /size size sizeid25/sizeid sizebarcode420/sizebarcode sizeshort 42/sizeshort sizelong 42/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency
[jQuery] Re: Jquery UI Dialog - default button (focus on the default button)
there is an own group for ui: http://groups.google.com/group/jquery-en you can change the focus by adding: open: function() { $(this).parents('.ui-dialog-buttonpane button:eq(0)').focus(); }, On 8 Mrz., 13:23, Alexey alexey.polio...@gmail.com wrote: Hello I am using Jquery plugin Dialog and i can not figure out how to make the Ok button the first one from the left and selected. By default the selected button is one on the left, but I want Ok to be on the left. Anybody knows? Thanks
[jQuery] Re: Jquery UI Dialog - default button (focus on the default button)
http://groups.google.com/group/jquery-ui On 8 Mrz., 14:20, mcologne blueameri...@web.de wrote: there is an own group for ui:http://groups.google.com/group/jquery-en you can change the focus by adding: open: function() { $(this).parents('.ui-dialog-buttonpane button:eq(0)').focus(); }, On 8 Mrz., 13:23, Alexey alexey.polio...@gmail.com wrote: Hello I am using Jquery plugin Dialog and i can not figure out how to make the Ok button the first one from the left and selected. By default the selected button is one on the left, but I want Ok to be on the left. Anybody knows? Thanks
[jQuery] how to use jquery AND eg a plugin or ui WITH prototype
hi, is there a solution for this case? jQuery.noConflict(); makes an own script work with prototype, but not a plugin or ui... best regards m, cologne
[jQuery] question for traversing xml
hi, i have the xml below... this is a part of items of shoes and i need to select all size, but not if their stock is 0. i can find the size with 0: var $test = $entry.find(sizes size stock:contains('0')); but i don't know how to find all sizes with not 0. i used .not(), but it didn't work. anybody an idea? best regards from cologne, m sizes size sizeid23/sizeid sizebarcode400/sizebarcode sizeshort 40/sizeshort sizelong 40/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency npp 21,15/npp nppcurrencyEUR/nppcurrency sp 59,95/sp spcurrencyEUR/spcurrency stock0/stock /size size sizeid24/sizeid sizebarcode410/sizebarcode sizeshort 41/sizeshort sizelong 41/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency npp 21,15/npp nppcurrencyEUR/nppcurrency sp 59,95/sp spcurrencyEUR/spcurrency stock1/stock /size size sizeid25/sizeid sizebarcode420/sizebarcode sizeshort 42/sizeshort sizelong 42/sizelong gpp 21,40/gpp gppcurrencyEUR/gppcurrency npp 21,15/npp nppcurrencyEUR/nppcurrency sp 59,95/sp spcurrencyEUR/spcurrency stock5/stock /size /sizes
[jQuery] Re: High Point Village Website
nice work, i like it! without going into details of programming, the site differs from that classic style often seen nowadays on many websites... you know what i mean... buttons, tabs... i like the big graphics in the backgrounds... best regards m cologne On Jan 30, 2:38 pm, kim3er rich...@dogma.co.uk wrote: Thanks for your feedback. With this project we wanted to create something that was interesting to but still functional without reliance on either JS or Flash. The end result, I hope, is a website that is functional and fully styled without JS turned on. With JS turned on, the site becomes more interactive and hopefully more engaging. For users with Flash 9 or above, more functionality is exposed, for example music, animated tooltips and the red people. What we didn't want was for any of the functionality to be dependant on Flash, that's where we draw the line. In hindsight the home page scroll would have been a lot smoother and consistent across browsers, if done in Flash. That said, I'm still very happy with the result. I'm not sure what you mean by the background fades bug, but I have discovered the random woman between animations. Thanks again. Rich On Jan 29, 9:33 pm, Ricardo Tomasi ricardob...@gmail.com wrote: I also had that problem. Sometimes I hover a + and it doesn't slide down. Also experiencied two other bugs: - when you click the + button, the background fades from black again - inside a section like 'bar' or 'boutique hotel', when I click another section (gym/pool/etc), an unrelated image flashes in the background (a woman laying back in a chair) Very nice design. Do you develop in Flash too? Was it worth the extra work to do it all in JS? cheers, - ricardo On Jan 29, 6:54 pm, David Meiser dmei...@gmail.com wrote: It has a nice user experience. However, you might want to think about the hoverintent plugin - things seemed shaky when I tried to click on them (eg - the animation kept moving when I wanted to hover over an item) in FF3. On Thu, Jan 29, 2009 at 12:58 PM, kim3er rich...@dogma.co.uk wrote: Hi, I've just finished working on a new web site using jQuery 1.3.1 and would appreciate feedback. http://www.highpointvillage.co.uk/ Rich
[jQuery] error with selector using jquery.ifixpng2.js and jquery v1.3.1
hi, there comes an error with the following selector... i'm using jquery.ifixpng2.js or (jquery.ifixpng.js) and jquery-1.3.1.min.js $('i...@src$=.png]').ifixpng(); Exception... 'Syntax error, unrecognized expression: [...@src$=.png]' when calling method: [nsIDOMEventListener::handleEvent... what is wrong with this selector? best regards m from cologne