[jQuery] Printing A Div
I want to print a div that contains content. I know how to do it with CSS, I need to be able to print different things from different parts of a page. Need some advice on how to get started. DO I load the div into an iframe and print that? Any ideas? Lemme know.
[jQuery] making a div full screen on top of other
Hi I am making a portal layout system with drag drop etc. All of that is done thanks to jquery ui and the demo I got a nice part of it working. Now I want to b able to make a div occupy full screen. Whats is the best way to do this , especiallycross browser ( HIghest z index and max size for viewportt. Is there some excisiting code allready or a simple plugin? Thanks Armand
[jQuery] [autocomplete] matchcontains: true causes input field to be cleared on onchange
Hello, In my autocomplete page, with mustMatch: true, the input field is cleared on change when the user tabs out of the field after selecting a value from the list. I am using the latest release from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ Is this common? Thanks
[jQuery] new rotating menu
hey I was just on the site recently and saw the new menu on the demos page. I was wondering how or if one might be able to accomplish the same thing with the current library and if anyone has documentation on how to implement it. thanks all Phil
[jQuery] Validation Plugin remote method
hi i'm trying to do a remote validation on an email field just like the Marketo sign-up form one! I'm not a programmer (don't know json too) and i don't exactly know what to put in my "email.php" file (which does the actual check). At the moment it just does a normal php check therefore nothin' happens. Could anyone give me some clue or some good link to read from? Thanks Vitto
[jQuery] [autocomplete] clearing the input field if the user does not select any of the options
Hello, How can I clear the input field if the user does not select any of the options. I have tried mustMatch but in IE it seems that the text typed must match the options. Maybe I am not getting it right My options are $("#auto_dropoff_state").autocomplete(dropoff_statecity, { width: 250, matchContains: true, autoFill: false }); Thanks in advance
[jQuery] [SITE] ShareThis
ShareThis uses jQuery http://sharethis.com/ Rey...
[jQuery] [tablesorter] Custom Sorts
I am having a couple issues with how to sort a few of my fields. The first, and I think most difficult is I have a field which holds the value of "Empty" or lists state abbreviations. What I'd like it to do is have "Empty" be grouped together and then sort the state abbreviations in alpha. I tried the grades demo, but with no success. The second is I have an ID field which is constructed by the year and then a sequential number. Example - 2008 - 1, 2008 - 2, 2008 - 3, etc. The problem is that when
[jQuery] How to get text content in nested list
I'm trying to get the text contents of a list item that also contains a nested list -- but only want the text content of the parent <li>, and not the <ul> also contained within it. Markup would look something like: <ul class="specialList"> <li>The list item text <ul> <li><a href="#">Sub item one</a></li> <li><a href="#">Sub item two</a></li> <li><a href="#">Sub item three</a></li> </ul> </li> </ul> So what I'm trying to get jQuery to capture is "The list item text", but nothing else in that <li>...
[jQuery] One jcarousel controlling another jcarousel
I am wanting to have 2 jcarousel stack on top of each other. The top one will contain thumbnails and the bottom will contain more information about the thumbnal. Is it possible to link the thumbnail to scroll to the correct "page" on the information jcarousel. I have seen examples on how to have external controls; however, those are set up to control itself with the callbacks. I am not that familiar with jquery so any help would be appreciated. I am not sure this is the correct way to ask it, but
[jQuery] drag & drop post to db
After way too many hours wasted, I find I have to ask for help. I am a coldFusion programmer and a neophyte at jquery. I am trying to show and post info for a drag & drop page. I need to show the coordinates and strokeNo and post to a database the same plus the div of where the draggable was dropped. Hopefully this makes sense. Thanks in advance... test page: http://teazer.com/test.cfm $(document).ready(function(){ $(".drag").draggable({containment: ".wrapper"}); $(".drag").mousemove( function(e){$(this).html(e.pageX
[jQuery] Superfish > superfish.js + prototype.js + scriptaculous.js
Hi, I´m using the superfish vertical menu with an ajax (scriptaculous +prototype) application and the superfish was working just fine, before add this application. Now, when i do a mouseover the 2st level menu, just appears and disappears !?? here´s the link: http://marteleira.com [code] <link href="css/global.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="css/vertical.css" media="screen"> <script type="text/javascript" src="js/jquery-1.2.3.js"></script> <script
[jQuery] JQuery animate wont work on Opera 9
hi! Im new to jquery and my issue is jquery animate wont work in opera 9. However its working perfectly on FF and Safari. here is the code, function ajaxpost() { var errors = MM_validateForm('txtName','','R','txtEmail','','RisEmail'); if(errors) { //alert( 'The following error(s) occurred:<br />'+errors); $('#contactform').animate({ opacity:0, width:"0", },'slow',null,function(){ $('#results').animate({ opacity:100,
[jQuery] how to implement jcarousel with asp vbscript
hello. i have found abouth tis Jcarousel. but it is quite hard for me to implement this Jcarousel with asp vbscript coz i am newbie in programming , especially Ajax . can u plz give me some guide on how to use it with asp vbscript? i really need help. hope can hear from you all soon. thank you.
[jQuery] How to do a document.getElementById("mytextbo").select() in jquery?
I've been searching and i'm not quite sure how to do it. Anyone else know how? Thanks
[jQuery] Problem with refresh Superfish menu plugin Jquery
Hi Joel, please help me.... I speak a little bit English. My name is fabrizio, from Italy. I use your fantastic javascript. Have the refresh problem with fixefox. An example page here: http://www.netqubic.com/SAIME/ Hope that helps
[jQuery] animate wont work on Opera 9
hi! Im new to JQuery and my issue is animate is not working in opera. here is the code, function ajaxpost() { var errors = MM_validateForm('txtName','','R','txtEmail','','RisEmail'); if(errors) { //alert( 'The following error(s) occurred:<br />'+errors); $('#contactform').animate({ opacity:0, width:"0", },'slow',null,function(){ $('#results').animate({ opacity:100, width:"205px",
[jQuery] JSON Serializer
I'm having an issue using an asmx web service to return json to a jQuery ajax call. If I run the web service stand alone i get a nice json response as follows: <string> {"City":"nyc","Country":"usa","PostalCode":null,"State":null,"Street":null} </string> I'm using the DataContractJsonSerializer in .NET to create this json. When I call this web service from a $.ajax call I can't get at the values of the json object and i notice in firebug that the response is now : {"d":"{\"City\":\"nyc\",\"Country\":\"usa\",\"PostalCode\":null,\"State
[jQuery] Problem with superfish
Hello, I'm french and I will try to explain my problem in english. So, sorry for mistakes. I can't give you an url because the website is not online. There is an horizontal menu, and on mousehover a submenu appears under. When I go on a page, I want the submenu stay visible, not hidden, and the same thing for sub-submenu. I don't know if you understand. Please try to make an easy answer : its can be technical of course. Thanks Nancy
[jQuery] Superfish - modified Richard Willis
Hi, I've seen one other post regarding this, but no one ever answered so I'm trying again. I'm using the Richard Willis example (http://users.tpg.com.au/j_birch/ plugins/superfish/richard-willis-example/), and have also taken the functionality from the All Horizontal example (http://users.tpg.com.au/ j_birch/plugins/superfish/all-horizontal-example/) to make my second tier appear by default. Check out my menu here: http://secure2.vqcdesigns.com/~hbgrc/index.php The obvious problem is that when you
[jQuery] validate a form using jsVal script
In an $.ajax option beforsend, I want to call a function to validate a form using jsVal script (jsVal is here: http://jsval.fantastic-bits.de/ The home page shows examples) I tried the following: ... $.ajax({ beforeSend: showRequest, ... function showRequest(){//alert('showRequest'); var objForm = document.forms["contactForm"]; validateStandard(objForm, 'error'); } The alert will show but, validateStandard() is not processed. jquery ignores this and proceeds
[jQuery] [autocomplete] Dealing with Charsets
Hello! I like jQuery + autocomplete very much, but I have to deal with umlauts and this stuff. The problem is that the webserver (IIS + PHP) is queried with %C3%BC instead of %FC for the ü. I don't know if that is a problem with jQuery or autocomplete or some settings on my server. If you have any suggestions, please tell me! Regards, meilon
Update scrollable table with ajax
I have found this excellent plugin that transform a regular table to a scrollable table. http://www.webtoolkit.info/scrollable-html-table.html It works great. I want to update the table with ajax every 10 second. The problem is that once it has updated, it looses the scrolling feature and becomes a regular table. I have tried to set Scrollable() after loading the page, but it doesn't help. Any ideas? <div id="Meddelanden"> <table cellspacing="1" id="MeddelandenLista"> <tr> <td>test</td> </tr> </table>
cycle plugin and picture description
Hi, i am using cycle plugin and the *before* event like this: function onBefore() { ('#desc').html(this.title); }; $('#slides').cycle({ fx: 'fade', before: onBefore, pagerAnchorBuilder: function(idx, slide) { // return selector string for existing anchor return '#carousel ul li:eq(' + idx + ') a'; } }); html: <ul id="slides"> <li title="pic1"><a href="gallery/pic1.jpg" rel="group" title="pic1"><img src="gallery/pic1.jpg" alt="pic1" /></a></li> <li title="pic2"><a
[jQuery] find by partial id
hello please help me with a simple question i have a control which is rendered couple of times (gridview) and gets some id which i know only part of, for example if i named my label lblName then on each row I will have gvMyGrid$ctr32$lblName or something like this.. how can I find all the labels? can I find by partial id? I tried $("#*lblName"). but it doesn't work Thank you
[jQuery] Sending datastring using $.ajax with 'invalid characters'
Hi There I have been struggling to correctly format a datastring to be sent via POST that may contain 'invalid characters'. I am trying to send text & html via ajax post, and this has been achieved mainly due to Javascript's escape() function. For example, to send the ampersand (&), escape() is used to convert the character to it's (8bit?) value. For the most part the escape function correctly formats the data string, but there are certain characters that will not be escaped, and will be processed
[jQuery] In liferay when using jquery tab it renders the whole page
Hi, I try to use jquery in liferay portlet through spring web-flow action. It renders the whole page inside the tab instead of the particular jsp content. How shall I solve this problem. Please help me Thanks in advance The code is <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet"%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Sample for tab implementation</title> <link rel="stylesheet" type="text/css"
[jQuery] JQ Comments and Bug help
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=US-ASCII"> <META content="MSHTML 6.00.6000.16609" name=GENERATOR></HEAD> <BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7><FONT id=role_document face=Arial color=#000000 size=2> <DIV>This message was also posted in the General Discussion Group, but I'm a bit confused how things work
[jQuery] why is droppable() 's init method trying to read outerWidth() of a div?
Take a look the following from jquery.ui-all-1.5b4.js: -- it's inside of the droppable() method's init method: 802 //Store the droppable's proportions 803 this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() }; I have been stuck for a while on an error this causes. I am calling droppable() on a div and I get an error saying this.element.outerWidth is not a function. Of course, because elements don't have an outerWidth! The div from which I'm calling droppable()
[jQuery] Syntax question regarding value of currrent element being clicked.
Heres my code: This fires on any dropdown with the class 'ajaxdropdown': However, it errors telling me that event.val() is not a function. How do I refer to the current dropdown being changed, and get its value? I know $ ('#idofdropdown').val() will work, but I need to use multiple dropdowns. $(document).ready(function(){ $('.ajaxdropdown').change(function(event){ $('#charges').load('/new_callchargesajax.asp? shtech=y&c_name='+escape(event.val())); }); }); Thanks.
[jQuery] [autocomplete] Dealing with Charsets
Hello! I like jQuery + autocomplete very much, but I have to deal with umlauts and this stuff. The problem is that the webserver (IIS + PHP) is queried with %C3%BC instead of %FC for the ü. I don't know if that is a problem with jQuery or autocomplete or some settings on my server. If you have any suggestions, please tell me! Regards, meilon
[jQuery] how can a landing page verify that the user has logged in?
Hi, I just created a webpage that requires a username and password to be submitted in order for the user to proceed to another section of the site. My questions is how can the landing page (the page the user is redirected to after submitting the correct information) verify that the user has logged in??? If he/she hasn't how can I redirect the user to the login page??? Can this be done with javascript itself??? or do in need to connect to some sort of external database??? Thanks - puma
[jQuery] FAQ for 'How do I disable enable an element'
Is this FAQ correct: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_disable.2Fenable_an_element.3F The example code given for the FAQ is: // Disable #x $("#x").attr("disabled","disabled"); // Enable #x $("#x").removeAttr("disabled"); but I tried this: // Disable #x $("#x").attr("disabled",true); // Enable #x $("#x").attr("disabled",false); and it seems to work fine. I prefer this approach because it is easier to chain together several commands, like this: (function($){ $.fn.mydisabled
[jQuery] [Job] CSS/jQuery/HTML Perfectionist
Turn bloated pages with too much markup into minimalist art Enhance javascript apps turning them into awe inspiring jQuery code Contort CSS into flowing sheets of elegant simplicity Prototype applications composing an amazing amalgamation of these areas Define the standards for doing such things for the unwashed application programming horde If these things appeal to you and... you wouldn't mind relocating to PA... are not an outsourcing company... you dont want to sell us on your consulting...
[jQuery] Learning JQuery Chapter 6 XML parsing
I could see the content of the d.xml file (alert('data: ' + data), but I could not see the alert('inside each function'). I think jquery did not recognize d.xml is an xml file. Any idea? Thanks $(document).ready(function() { $('#letter-d .button').click(function() { $.get('d.xml', function(data) { alert('data: ' + data); $('#dictionary').empty(); $(data).find('entry[quote[@author]]').each(function() { var $entry = $(this); alert('inside each function'); var html = '<div class="entry">'; html += '<h3
[jQuery] Is there a way of counting the number of id's with the same name, and then renaming them _1, _2, _3 etc.
Hi, I am dynamically generating html which looks like this: <div id="wrapper"> Some Content </div> <div id="wrapper"> Some Content </div> <div id="wrapper"> Some Content </div> I need to write some jquery which will turn that into this: <div id="wrapper_1"> Some Content </div> <div id="wrapper_2"> Some Content </div> <div id="wrapper_3"> Some Content </div> Any ideas? Dave
Ajax form and includes
I've got a suggestion form that inserts into a db table when they submit, my jquery is located in a /js folder, while this page is in /, and my db settings are in /includes/ Here is my $.post $.post("../sendsuggest.php", { subject: subjectVal, message: messageVal, theusername: theUser }, function(data){ $("#sendSuggestion").slideUp("normal", function() { $("#sendSuggestion").before('<h1>Success</h1><p>Thank
[jQuery] Dynamic Software causing many script loads, how would one handle this?
I have an application that has many plugins, all of which have jquery scripts. Now, i imagine there are ways to program an javascript aggregator of some sort, but i imagine this is a very common problem with plugin based web-apps, so i was curious if jquery had any ways to handle this.<br clear="all"> To reiterate with an example: If you have a CMS that is plugin based, with 20 plugins, and each plugin has its own js file to run its own, plugin specific, jquery code from. You cannot(<i>and should
[jQuery] FlexiGrid plugin json help
I am using the flexigrid plugin from http://webplicity.net/flexigrid/. I have my codebehind generating a json result in the format expected until I call the url as a struts action in my portlet... This wraps the output with an unexpected <div> tag which makes the grid not render. I've used fiddler to get the result from the background page and made a static page that works great as long as I remove the DIV tag from around the json text. My request is how could I have the function ignore any html
[jQuery] IE7 blocked content popup
I'm currently working in a tiny demo. No server, nothing, executed locally (from the hard drive). The results is the classical msg: "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer". To allow the blocked content to execute, right-click on the information bar and select "Allow Blocked Content". Someone find a way to avoid this popup?
Next Page