Call function with parameters - problem
Having problems executing the function runupdate (line 26) Example page Jquery code call function <script> $(function() { // Function to read #log div function runupdate(personsIDval) { alert('inside runupdate function'); var events = []; var idRE = /^Event ID : (\d+).*$/; $('#log div').each(function() { events.push(idRE.exec($(this).text())[1]); }); $.get('runupd.php',
SelectMenu and multiple and native menu not working
Hey all, I've tried a select menu like the following: <label for="Desert">Desert</label><select data-close-text="Closetext" data-corners="false" data-native-menu="true" id="Desert" multiple="multiple"><option value="Item1">Item1</option><option value="Item2">Item2</option></select> The box for the value shows up, but clicking it shows not drop down. I assume because in some browsers a multiple select element is sort of always 'expanded' and options are toggle-able? Any way to work around this
Using filter() to hide all divs expect for one which should be shown
I have the following code $("#v_posts").click(function(){ $("#general-div").hide(); $("#styles-div").hide(); $("#feeds-div").hide(); $("#misc-div").hide(); $("#pages-div").hide(); $("#posts-div").show(); // $("#right").filter( $("#posts-div") ); }); which i am using to hide some divs and show one div.This works but i would like to compress my code a bit to make my work easier.All the divs are enclosed by a wrapper div with the id right. Currently i am using this to
Trying to figure out a select box issue
I am trying to create a form in which the child fields are disabled or enabled based on whether you chose one or the other. I was able to do it with a checkbox, but i want it to work with the drop down select value. here is the link and the script below: http://www.rfdesignstudio.com/newsite/paypal.html Here is the select script: <select name="type" class="input" id="type" onchange="type()"> <option value="General">General</option> <option value="Walk-a-thon">Walk-a-thon</option>
Cycle Plugin failing to work...
Well, I'm sorry to be posting. I did a search for both the plugin and that it is not working, but could not find a solution on my own... I have everything installed, to my knowledge, correctly. .js files are in a /js/ folder along with the CSS file. Despite all of this, the images just sit there in a cascade down the page... Any help is appreciated :) Here is what I have; Browser: Firefox JS Files http://www.josieroetman.com/js <HEAD> Tag <link rel="stylesheet" type="text/css" media="screen"
Superfish full width in Drupal
Hello! Is it possible superfish menu to be automatically resized to full width? I have 1000px width region with 5 menu items. I can manually set .sf-menu.sf-style-default width: 100% and .sf-menu.sf-style-default li, .sf-menu.sf-style-default.sf-navbar width: 20%; But it isn't nice because menu items has text with different length.
recommendation for a horizontal scroller
Hi, guys! I don't know if i gave an adequate title for my need. For example, on a website with lots of contents (options) that have fixed width, I need a plugin that takes care of them when browser window size is being changed, by showing horizontal left and right buttons, which, when activated move entire content left/right like regular scrollers. Please recommend plugins adequate for this issue, thank you in advance!
Android zoom
I can´t zoom an image (on Android) in my application. I am desperate Following is in my header: <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> In my script i made this: $(document).bind('mobileinit', function(){ $.mobile.metaViewportContent = 'width=device-width, minimum-scale=1, maximum-scale=2, user-scalable=yes'; $.extend($.mobile.zoom, {locked:false,enabled:true}); }); But it isn´t work (on iOS it works) -
What a format of jquery API description?
What a format of this jquery API description? How to understand this write?
MODX en Jquery Mobile
Hi everyone, I'm trying to make a website with CMS in combination with jQuery Mobile. On this forum I read that MODX would be the best solution to work with. I decided to make a website in MODX and after that trying to make a jQuery Mobile front. This last thing is more difficult than I thought. Where do I have to start? I know how I make a website with jQuery Mobile. But I don't know how to make this in combination with MODX. There is no explanation online. For example, how can I show the menu (which
cleditor plugin - issues
Hello Everyone: I've a cleditor plugin installed on my site. It works great when entering data and INSERTing data into mySQL. Now, I am writing SELECT statements to pickup the data used by cleditor. My goal is to display a table of different "topics" using cleditor data. The user should be able to click on a <tr> checkbox, pickup row values and assign those values to different input fields. Things work great for every field except my cleditor content. With cleditor content I have the following
jquery mobile web app leave empty white space at page bottom
I have a web app (i used JQM) currently customized to iphone. all elements are fitted to the page height, but i'm getting a white space on the page bottom. when viewing the page on pc browser everything is fine, so i guess the problem is related to the iphone screen resolution configuration on some CSS file. Please view the web page on your iPhone to see the white space (scroll down):http://aspspider.org/elimiz/check4/MC_v1.0.htm Help me
Problems with jquery <ul>
Hi people :D I have a doubt. I have a button, where I have an ID CODE <li class='inline btn_fone'> <a href='java script: void(0)' id='$id' class='botao_f efeito_fade'> </a> </li> When I click on this button, it should get this ID and open an <ul>, that is a telephone list, which is called from a database CODE <div id='exibe_fones'> <ul id= '$id_lista' class='lista_fones'> <li class='fone_n'>9999-9999</li> <li class='fone_n'>9999-9999</li> </ul> </div> My jQuery is like
Autocomplete
Good Morning I need your help urgently. I implemented a jQuery autocomplete functionality. However, it only works for Chrome. I could help with this problem. My code is as follows: $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy",
Dynamically added controls not identified by jquery function.
Hi Team, I have a container div within which i have added child controls dynamically during page load. I have a jquery function called on document ready, which does not identify these dynamically added controls. The lenght of children of the container always returns 0. Can anyone please help me with this? Thanks, Goutham
How can I prepare my images for multiplaforme devise
Dear All, I am new in developping web application for mobile and I am trying to devlopping a application to show picture, as a gallery. My problem: I do not know the size of the images, because iPad, iPhone, android and other, do not have the same screen size. And Of course, I would like to have the image displayed in full screen. So, now how can i prepare my images? Do I have to have different image size for each platform? Thank for your explication. Cheers
Setting variable in parent document
Hello: How does one set a variable (global) in a parent document? I've tried several methods: parent.window['var_open']=true; window.parent.var_open=true; parent.var_open=true; None of those methods are changing the var_open variable to true. What am I doing wrong? Thanks Much: Pavilion
noobie : facebook load different pdf in to a div via a link
hi i wonder is someone can help me i am a bit of a noobie and trying to do a simple facebook static html page which allows the users to select a link and it then loads a pdf in to the same div on the page i basically trying reading a few articles and combing them but able to see it working so i have 3 or 4 links at the page which will then pass a filename to a function to basically update the div statement i have put a dummy - blank.pdf to load at start up just to stop errors when i was trying to
Problem with .load() callback in a loop
Hello, This is my first time posting, so please forgive any etiquette transgressions. Also I am a beginner/novice jquery user, so please take it easy on me. What I am *attempting* to accomplish is queuing up a bunch of remote pages into a hidden div, with a bunch of sub-divs which contain the actual loaded content. I am loading these pages via the load() function in a for loop. Once the for loop completes a set of icons is displayed which when clicked shows the respective loaded content. Everything
how do i access the eliments of a page that has been .load() into a new page
Hello everyone i am new to jquery but love it already ( i am a php programmer). i have just use the .load() function to load content from another page to a new page. i am able to load the contents. However, i now wish to accesssome elements of the newly loaded content but i am not able to do this. $(document).ready(function() { $('#signin a').click(function() { var url=$(this).attr('href'); $('#loginpostion').load(url + ' #loginform'); return false; $('#closebox a').click(function() {
How do I put the jquery tabs code into an external js file?
I'm still learning how to use external javascript files so I'm a bit stumped at the moment. I already have the external js file working OK with a couple of functions. How do I put the jquery tabs code into an external js file? I'll make it really simple, here is the demo tabs site: http://jqueryui.com/demos/tabs/ I have copied and pasted this whole code into a HTML file and it works. This is this bit of code I want to put into the external js file: <script> $(function() { $( "#tabs" ).tabs();
Building Collage using multiple images and saving it as image.
Hi Team, I found many articles on net to build a collage using jquery. But my requirement is to fetch many images, built a collage out of it and save the collage as another image. Is there a way otu to do this either using jquery / server side? Thanks, Goutham
list ui-icon bind click
Got a listview with left aligned icon. Unable to bind 'click' to icon. Able to get all icon's span with selector. <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css"/> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script> <script> $('#home').live('pageshow',
Validate: Validate form + CKEditor plugin - multiple class non working
Hi all, i'm trying to validate a form with a "required" textarea. The textarea has already a class to work with CKeditor plugin So i tried to put class="ckeditor required", and it is only ckeditor (not validated) then i tried to put class="required ckeditor", and it is only ckeditor (not validated) if i try class="required", the text area is validated. I can't understand what's wrong.. validate plugin should manage multiple class.. thanks
XML Datei auslesen und Values anzeigen
Hallo Forum, Mit diesen Script bin ich in der Lage eine XML Datei komplett auszulesen und alle Values (A,B,C,D,E,F,G,H) ausgeben. Es ist so, dass ich nur die Values für einen bestimmten Künstler anzeigen möchte der als Drop-Down Liste gewählt wird. Also für Michael Jackson nur A und B als Values anzeigen. Was müsste ich im Script anpassen um dies zu realisieren? XML: <?xml version="1.0" encoding="iso-8859-1"?> <dropdown> <menuitem> <title>Michael Jackson</title> <values> <value>A</value>
showing and hiding a div
How can I show a div on selecting of one option and hide it on selecting of another option.
.click on an image map
Hi Guys, complete newbie here, so be nice! I have the following code that I want to fire as the result of somebody clicking an area on an image map: $('#Process').click(function () { //do stuff } and the image map is: <div id="Banner" > <div style="text-align:center; width:842px; margin-left:auto; margin-right:auto;"> <img id="ImageMap" src="divimage.jpg" usemap="#ImageMap" border="0" width="842" height="226" alt="" /> <map id="_ImageMap" name="ImageMap"> <area shape="rect"
problem selecting parent
Hello everyone, I am a newbie studying jquery recently and try to do my website. I am actually reading the jquery cookbook and thought I understood something. But in the practice I do not come along with some simple problems. For example I have these divs in my html: <div id = "menuItem"> <div id="FirstPos" style = "…" onmouseout="fadeinAll();"> <img id="Collection" src="images/COLLECTION.png" onmouseover="fadeoutbutFirst();"> </img> </div> <div id="SecondPos" style
How to validate file size function before submitting form,
Friends, I am using jquery.validate plugin. from here I am not so smart in jquery. My query is, File size should be validate before submitting, for example maximum file size 500 kb the validation error should be the same according to the form. Here is the url of demo, i already mentioned the jotform upload url with code inside the demo. http://alturl.com/ocm6v Please let me know yashmistrey[a]gmail.com
G Maps - Cache JQM or Android?
Android 3.2 jQuery Mobile 1.1.1 I have a shipment tracking program that provides two location links (Origin and Destination), which bring up a Google map in a separate page in a separate file. The user enters up to 5 tracking numbers, and sends the data to the top of the page where it is processed and the results displayed. The location links are within this displayed data. The map comes up just fine, and I am able to hit the back button and return to the form results - undoubtedly, because they
Adding Ellipsis after a number of characters...
Hi there, Im a newby in Jquery, and Im whiling to learn more about it! By now, im having a problem with a text box which I need to show and hide a part of the content, but inserting the Elippsis when the part is hidden! bellow the html and script codes! Any help plz? function toggle_guru(id, anchor) { var b = $(id); if(b.hasClass('guru')) { b.animate({ "height": "210px" }, 500); $(anchor).html('read more'); b.removeClass('guru');
Media pluging not working
Hi there I'm a newbie to the jQuery media plugin. I've followed the instructions at http://malsup.com/jquery/media/ but I haven't had any luck. I have jQuery core included from http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js and I have downloaded and included the file from http://malsup.com/jquery/media/jquery.media.js?v.92 I have the media call like this; <script type="text/javascript"> //Convert 'media' tags using jQuery $('a.media').media(); //Style appropriate menu item
jQuery.getJSON("api/endpoint", ...} results in 404 in Chrome, works in IE
I'm using jQuery.getJSON to interact with a REST endpoint. The endpoint is always relative to the html page from which I'm using jQuery. jQuery.getJSON("api/endpoint", ...} In development: http://computername/dev/api/endpoint http://computername/dev/page.html In production: http://prod.url.com/api/endpoint http://prod.url.com/page.html In the development environment using chrome I receive a 404 - the request according to chrome developer tools is: /api/contactread. Note the / at the beginning. In
jquery slideshow.
Ijquery slideshow need to create a 5 image jquery slideshow On each slide i want the images i am going to use the cycle plug in for that. I also want text sliding away throughout each slide with a fade in effect and fade out effect. I need some video guidance for that or directions as how to proceed with that
jquery to apply css to show only if url is checked
Hi there, I've been asked to apply a change to the background of our website at work. However I need to be able to test it before I put it live and I need to test it on the test site. However if I make a change to css it applies it instantly to live and the test site. This is not good for customers if the background of the website is constantly changing colour and potentially presenting incorrectly. Is there anyway I can set a piece of css to only apply if jquery has checked the url in the browser
problem with linking
Hi everyone, I'm trying to make an application that browses some".html" stored on the device, and I'm trying to make a link to a cydia package in this form: cydia://package/com.***.*** The link works in every app -notes, messages, whatsapp ...- except my app ! any idea what's the problem here ?! Thanks ..
Select box change event
Hi, I am new to jquery and try to use it for two simple functions on my page. Before i used Ajax but ajax didnt work on IE. So I am trying to get the value of a Selectbox on change and send it via get to another php page, this page echos the htmlinner for the second Selectbox. My first attemps to try out jquery didnt work. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta> <title>Softbox - Passwortverwaltung</title> <link
Using history.pushState() & history.replaceState() methods with ajaxEnabled: false
Hello, I have ajaxEnable: false (IT architect decision) but one part of my app uses ajax to load the pages because we're using a web service for this one feature. When I hit the browser back button after navigating within the ajax section, it takes me to the previous fully loaded page and not the ajax loaded page I was last on. Make sense? I've implemented data-ajax="true" on all my links within the ajax section, but it doesn't seem to be working. I'm using the basic header, footer and content div
animate on page load...
I am trying to animate the overview (a brif descrption) of my shopping basket on a clients website but it doesnt work! In theory sounds dead easy, however, I want that to happen only when the user adds a new product on the basket, so this is what is happening... When the user adds a new product on the basket, the page (which is the product details page) reloads its self and it deosnt take the user to the basket detials page. The user can go to the basket page only if s/he wants to. So what I want
Performance
Hi all, Firstly sorry for my question! This $("input#test") is better than $("#test")? Or has no difference? Thanks..
Next Page