JQuery ieSelectStyle() function is not working in IE 7
’m using jQuery’s ieSelectStyle() function to display big contents in select box. The code is working fine with IE 8 and 9 and not with IE 7. Please see my code below <!-- Added two jQuery files --> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript" src="jquery.ie-select-style.pack.js"></script> <script type="text/javascript"> $(function () { // calling jQuery function $('select#selectboxName').ieSelectStyle(); }); </script> <body> <table>
jQuery Multiple File Upload problem...
Please forgive me if I'm not following protocol. I'm relatively new at jQuery. Apparently I'm not holding my mouth right on the jQuery Multiple file Upload Plugin. It doesn't appear to be responding to a customization of the selected files list. Here is my code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Upload" %> <!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">
User is typing message HELP
Hi guys, I am trying to get something to show when the user is typing, but the message of typing stays for a few seconds after typing has ceased, a sort of msn messenger effect. I have so far: <script type="text/javascript"> function testPress() { $('#notify').html('Your typing!') ; $('#notify').fadeIn('slow') ; timeOut += 1000 ; } setInterval(function(){ setInterval(function(){ $('#notify').fadeOut('slow') ; }, timeOut); timeOut = 0 ; },2000); </script> timeOut is declared and set to 0 further up.
[Problem] Text & background-color
Hi guys, I just create a little site with jQuery Mobile and I d'ont understand why my text are a problem :/ If I use a white background, no problem. Anyone knows why ?
Error using JQuery validation on DropDownLists
Hi I am having a problem with jquery validation on drop down lists. I am posting my code. But when I run it, I am getting the following error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0103: The name 'dropdownlist1' does not exist in the current context Source Error: Line 79: $("#form1").validate({ Line
slideUp / slideDown Toggle for several DIVs
Hello Everybody, unfortunately I am new to Jquery and was wondering how it is possible to open one DIV while closing all other DIVs ( or maybe just the open ones) all with the same CLASS. I know that the accordion does just that but I ran in some other issues there, because I was not able to use another DIV to trigger the accordion (I am posting that exact question under another topic though because someone else might find the answer more usefull and easier) Right now I am Using the Toggle, which
Form Validation - Fields that shouldn't be validated are being validated
I'm not very good with javascript, but have tried to get the form validation plugin working. I do have it working, but it seems to validate things I'm not asking it to validate, and I'm sure it is my code, but I don't know what is wrong. I've uploaded what I have to here: http://colorspot.brianswebdesign.com What happens is, if I click on a field like Zip or City, and then click somewhere else, a green asterisk appears to the left of the input. Zip and City aren't fields I want validated, so I'm
PB & jQueryM: dialog box contents not styled a 2nd or subsquent times
Hello, I have to generate the contents of a dialog box on the fly (as I need to query the database for info first and then populate the dialog with it), but my problem is that the dialog box is only styled the first time it comes up. In the example below, (if you don't mind building and running on your sim), you click on the "New Dialog" at the top right, take a look at the dialog, it is styled by jQueryMobile which is good. Cancel out of it, and then click on the "New Dialog" button again and
Simple Problem !
Hello Everyone, Well i am facing maybe a conflict on my plugins javascript file, i am trying to fix it for the last 3 days with no luck, i googled a lot but again no luck, i am not a jquery expert and i need help with the following code : Logic --->validate inputs and if anything wrong fade error message, put a red border a round the wrong field and prevent the whole process, i made it work before with less plugins, any ideas ? Note: I bolded and colored my not working function in red $(function(){
if I append a class or a button to the parent of the input, it also gets appended to the div with data-role="fieldcontain"
Hi, for some reason, if I append a class or a button to the parent of the input, it also gets appended to the div with data-role="fieldcontain". Is this by design? <div data-role="fieldcontain"> <div> <input type="text" /> </div> </div> thanks Matt
How to open datepicker on button click and display the date in a textbox
Hi All, I am using daterange picker. I want to open the daterange picker on button click and display the selected range in a textbox. Any help??
How to set a dynamically created select's selected value to a variable's value
Hello, I have a cookie that contains a select's last selected value. The cookie is well written and assigned to a variable 'myCookie'. I'm populating a select's options using a php script with $.getJSON Once the select is populated, how to set its value to myCookie's value? I thought it was: $('#mySelectID').val(myCookie); But the select does not seem to be updated (or does not show the updated value). Thanks for your help.
Onclick not working with ben alman's jQuery BBQ
Hi New to all this so ill try asking you guys. Im creating a ajax based page so i needed to use jquery to fix the back button. Found Ben alman's BBQ library and it works perfectly, almost. :P The problem is that when i use onclick to run an ajax function. It doesnt work untill i have refreshed the page. The two doesnt seem to work together :S Why is this? Is this suppose to happen or? The function that im trying to run on onclick is this function xmlhttpPost(strURL, input_value) {
Button background broken for icon, not sure if it is my error or not.
Hi all, I have a button with an icon and the icon is displaced, when it is placed inside a span that has the class ui-widget-content I believe that this person was having the same issue http://stackoverflow.com/questions/4507469/jquery-ui-widget-content-button-bug I could just use a different class for the span, I just wondered if there was a I am importing jquery from here. /static/js/jquery-ui-1.8.9.custom.min.js This is the markup I am using <span class="ui-widget-content"><input type="button"
keyup overrides onkeyup function
I'm doing some customisation on existing software - my objective was to reflect changes to a form in a separate table. The forms require the user to enter numbers and these are totalled in the final formfield via an existing 'onkeyup' function. I used keyup to copy the value typed and add it to the summary table. However in doing this, the existing 'onkeyup' function written into the form no longer works and so the total is no longer displayed. I tried using keypress instead (which still had the
How to use the draggable using absolute position?
Hi, I made all my html elements to use the position absolute. I notice that jquery ui draggable changes this to releative. When this is done my elements end up moving and going out of their divs. Is there any way to not allow the position to change from absolute to relative???
Regex in Validation
Hey there, Is there a way to validate the value of text field against a regex using Validation plugin? Eg: Validate a field for IP Address. Thanks! Moiz
My forms don't submit if the input fields are inside a list view
Hi guys, I have a basic login form in my Jquery Mobile application, and since I like how the listviews look, especially with the data-inset=true, I decided to put my fields and submit button in an li tag. However when I do this my form will not submit. If I remove the listview code it does work. So what happens is that the form does not react at all, with the below code. It doesn't even show the standard "Loading" overlay that usually appears when you submit a form. Any ideas? Thanks a bunch! App
FadeSlideShow Multiple instances.
Hi All, I am in the process of modifying the fadeslideshow by Pascal Bajorat as I found that it was not capable of supporting multiple slideshows on the page. I am to the point where the i can have multiple slideshows on the page but the Next and prev buttons only effect the last slideshow that is being rendered. My initial thoughts is the array of slideshow items that i create to control the count and fade in/ out effects for the slides is not being associated seperately with each slideshow but
jQuery UI Modal Dialog with Next and Previous Buttons
Hello, is it possible to use the standard modal dialogs and insert next and previous buttons to navigate through the content of an array? How can I insert the next and previous functionality into the modal dialog? I have no clue how I could proceed. I'm very thankful for any support. Best, Daniel
I thought every line of the code need semicolon?
But then when I download some video files of JQuery and then I found this lines. Why they dont use semicolon? function showRequest(formData, jqForm) { var extra = [ { name: 'ajax', value: '1' }]; $.merge( formData, extra) return true; }
GZip
The jquery home page at http://jquery.com offers a 29KB gzipped version of the latest code, but when I check that box, vs the full version, I just get a page with the minified version and if I save that the file is 83KB. So how do I get the gzipped version? Also, where does this get un-gzipped? Does the browser do that in real time each time a page with jquery loads? Thanks for any help. Steve
Using async .ajax within .each loop
I have been googling around about this for quite awhile without any definite answer. Here is the code I am having a problem with: var $m = {'id1':'page1.html','id2':'page2.html'}; /* load modules */ $j.each($m, function($key, $value){ $j('#'+$key).html($loading); $j.ajax({ url:'proxy.php', type:'post', data:'module='+$value, context:$j('#'+$key), dataType:'html', success: function($response){ $j('#'+$key).html($response); }
How To Parse Multi Field in Checkbox?
Hi All! I'm beginner with JQuery, And i have a problem with this. I made a program which is using checkbox, and with that checkbox i have to update database. (the checkboxs are showing in every row that showed in my page), and the using of it is for checking some item that i had received. The problem is just because i put it every row, so i need to parse primary key field and foreign key field value together with the checkbox. But i'm not really sure how to put many value in one input checkbox.
problem with jquery slide down menu ul li
this code working fine with internet explorer but not with mozilla and chrome function initMenu() { $('.categories_list ul').hide(); $('.categories_list li a').click( function() { $(this).next().slideToggle('normal'); } ); } $(window).load(function() {initMenu();}); wht to be done ???
livequery problem
Hi, I have problem with livequery. I'm trying do validate (using validate plugin) form which I load using load() function. But there is one problem: validation works but first I must click twice on the submit button! I don't know how to get rid of the one click. Do you have any ideas? My submit function: $("#myform").livequery('submit',function() { $("#myform").validate({ debug: false, rules: { name: "required", email: {
adding a score counting to my javascript
Hi there, I am trying to add some sort of score system to my script, but I have no idea how to get this working. I have two files 1php and 1 javascript (which gets implemented in the php file) What do I need? I want to add a score system to my script. In the javascript there is this part of code: function foundMatchingBlocks(event, params){ var $elements = params.elements; $elements.remove(); This removes 2 blocks from a board. When this happens I want to ad +100 points to my score and show this
Visited state for the UI accordion
I implemented a FAQ page with the accordion from jquery-ui-1.8.11. It came out ok - http://www.steveswebshopphp.com/upaya/FAQ.html. But one thing that I wanted to implement but couldn't is a visited state for visited questions. That is, after you've opened, read and closed one question I'd like for that question to have a different text appearance so the user is reminded that they've already opened and read that question. But the accordion code seems to clear the visited state of the link in
Change not working when text box is change via Javascript
The change fires when I click in the textbox and change the value, but does not fire when the text box is changed via javascript. Anyway to get it to fire when value is changed via javascript? Thanks Steve
Multiple Results
I'm making a search field, they type what they want to search and it'll bring up the close results from the database and when they mouseover one of the results it pops up an image and description that should have been added to the array but I'm really stuck on how to do this I've been googling like crazy with no luck. I've only been using jquery for a month or two now. Here's what I have: [code] <script type="text/javascript"> var title; var plot; var image; $(document).ready(function()
Filtered list with separators: How to exclude the separator from the search?
I love listviews in JQueryMobile. They're fast, effective and with the instant filter they're also very user friendly. I just don't like that I don't see a way to exclude the separators from the search. Imagine a list view that has a bunch of car brands and their associated models. Now when I search for a model I do not want to see any of the categories anymore, just because they also contain a part of the text I'm searching for. Now it seems that some model belongs to a brand that happens to also
Detect browser window area changing
Hi! I am learning jquery and so far I am loving it. I am building a list inside a div. When I click the list it scroll until reach the bottom. The problem occurs when the available window height changes. I need to find a way to detect it to trigger a function that re-aligns the list :) thanks for any tip :) try the code i did so far: http://jsfiddle.net/ruiganga/rfUCQ/11
jQuery.map() and nested JSON array
Hi all, I try to use map() function to parse JSON data and build bullet list in Html. The JSON data have is: {"Successful":false,"ModelState":[{"Key":"MyDataField","Value":{"Value":null,"Errors":[{"Exception":null,"ErrorMessage":"My Error Message Here!!."}]}}]} It contains 2 level of nested array here, I try to extract all ErrorMessage from the data and build <ul><li><li></ul>. var bulletList = $.map(data.ModelState, function (item, a) { var temp = JSON.stringify(item.Value.Errors);
datepicker question
Is there anything in datepicker that allow me to block some days? like this i wont to allow users to select anyday except saturday and sunday, and hollydays, and other no workday
How do I fix the button size on a button toolbar?
I haven't been getting an answer at the oscommerce forums, so I figured this would be a good place to ask. If you look at my store at the link below I'm trying to get the button toolbar right underneath my logo to not only fill up the container it is placed in, but to also remain fixed in that position, no matter what the customer's screen resolution or zoom is set to. If you look at my site and zoom in and out, you'll see the black gap become bigger and smaller and might understand what I'm referring
How do I remove the default trigger element in UI Accordion?
I need to know if I can remove the default accordion trigger element, which is currently set as <H3>. I know you can declare other elements or their id/classes as triggers, but I need to remove the <H3> element from triggering the accordion function. The reason is I am setting up a master CSS sheet that needs to be viewable in an HTML environment. The CSS styles will, of course, include all the <H1-6> elements. Clearing this trigger will allow the <H3> CSS sample element to show properly. I want
desperate for help with not refreshing page
i've been trying to solve this on my own for over a week, i'm no expert and have read tutorial after tutorial but i'm at dead end and ready to give up. i have a search form that a user selects item from dynamic list hits the submit button and it returns each matching result on same page in an update form, i have 2 checkboxes in update form that updates the DB when 1 is checked, this all works fine until i check the checkbox the data updates ok but all remaining update forms are removed because
Using jQuery to replace form select of large list of users.
I've been told that jQuery can do this. Simple form which includes a drop down list of users obtained from a database which is displayed using a form select entry with options for each entry. problem is, the list can be quite long, upwards of several hundred. In PHP, I added a filter box (text box) which the visitor can enter in a substring that is then used to obtain and display only matching entries. Works great, but it needs to reload the page to do its thing. I've been told that jQuery can
jQuery Form plugin for dynamically created forms: problems
Hi, Web-code newbie here. I've been trying to use the jQuery Form plugin, unsuccessfully for now. No mail is sent from the form on hitting submit, and there appears no output from the php file in the targeted div (neither 'mail sent!' nor 'invalid e-mail address' etc.) There are two complications: 1) The forms are created on the fly long after the page has loaded, depending on user input. Meaning there might be a <form id="AppleForm"> and a <form id="PearForm"> if the user happens to ask for apple
How do i stop mobile safari from dropping down its URL/Loading bar whenever i submit an ajax request?
Hi Newbie here. I'm using the following code to send some data to a server whenever I click a particular button using jquery mobile. $('#btnDoorClose').click(function(evt) { evt.preventDefault(); $.ajax({type: "POST", url: "remote.php", data: "trigger Door:Close"}); }); But whenever I press it on an iphone, the url bar drops down for a second and then goes away. How do I stop the URL bar from coming down at all? All the information about "loading" or "busy indicators" online seem to be about creating
Next Page