Jumpin Bajeezopotamus! Does every single little tiny thing (like dividing by 2) require a forum post?!?
If it weren't for the fact that I can't afford to hire someone to do this for me, I swear I would. var w = $( this ).css( 'width' ), s = Math.ceil( w / 2 ) /*** I have also tried "( w / 2 )" and "w / 2" all three result in "NaN" ***/ console.log( w ) /*** prints an int. perfect. :) ***/ console.log( s ) /*** prints NaN... WTF??? ***/ Eventually I want to do this: return 'margin-right:-' + s + 'px;'
Pull text from span class & enter in input
Trying to look at classes starting w/ "searcher_stack-its_img". When clicked, I want to pull the text from the span's class. Right now, not seeing the console log output. After, like to enter the span class text into input#select_searcher Typ. div w/ an image: <div class="searcher_stack-its_img..."> <a href="javascript:void(0)"> <img src="resources/testimg.png"> </a> <span class="b2"></span> </div> $('div[class^="searcher_stack-its_img"]').click (function() { var sterms = $(this).children("span").attr("class");
Loading Page - ui-loader css class properties - background-color
I am using jQuery Mobile 1.1.1 , which is the latest stable version of JM. I am using $.mobile.showPageLoadingMsg(); method to show the loading page animation. The ui-loader css class is defined as below. .ui-loader {display:none;position:fixed;top:40%;left:32%;width:33%;z-index:100;padding:10px 10px;background-color:#000000;opacity:.65;} However, even-though the background-color is set to #000000, the resulting loading page background color is white. What could be the reason for this? Is there anyway
JQuery For Presenting Portfolio Swf videos
Greetings, I have been learning about JQuery and I am developing a website that will showcase swf files. http://www.freecsstemplates.org/preview/refillable/ offers a code that will present jpegs nicely, but isn't compatible with video.
Jquery Slideshow Conflict with MonkeySee Video Ads - SO lost, please help!!
Hi! I run MrsHappyHomemaker.com - and I'm having a problem with the jquery slideshow conflicing with MonkeySee Ads, and I could use any help/assistance I could get. I'm so lost!! I have a jquery featured slideshow that I use to highlight my recent recipes, and since I've added the MonkeySee video ad, I've noticed that it causes my slideshow to not slide on all browsers except for Google Chrome. Why it works on google chrome & no other ones is beyond me. The first image displays in the slideshow,
Pageinit Issue
Greetings, I have a multi-page template. The 'main page' has a list of five links, generated by an RSS Feeds Reader Plugin for jQuery (zRSSFeed). On the main page, there are links to internal pages to show complete articles (using data-ajax="false"). Those internal pages have the following code: $('#p4').live("pageinit", function(){ $.getJSON("http://viewtext.org/api/text?url=" + $("#url4").val() + "&callback=?", function (data) { $('#story4').append('<div>' + data.content + '</div>'); }); }); This
creating validation plugin
This is my first time creating a plugin. I am trying to make a plugin that will validate whether an input field is empty or not. My problem is with the keyup() function - if I call it as I did in 1.php it works fine, but I want to put keyup() in a plugin as I did in vall.js, it is commented out as $(this).keyup(function() is not working. Should I place keyup() somewhere else or make a separate keyup() function.? Later I want to add keyup(), focus()... to options so I can just write keyup:true or
Changing slideshow transition effect: slide left instead of fade.
I want to use this plugin: http://blog.aaronvanderzwan.com/2012/07/maximage-2-0/ But I want the transition effect to just slide from left to right, or right to left instead of fading. How can I modify this? Thanks!
div slide up and down
Hi, I need to have a div slide up on mouseover and on mouse out or mouseover anywhere else to slide back up. Here's what I have so far but it's not working accurately. $(".openNav").hover(function () { $("#nav").animate({"bottom": "-40px"}, "slow"); }); $("#nav").mouseout(function () { $("#nav").animate({"bottom": "-175px"}, "slow"); }); I tried setting a timer and delay but still can't get it to work right. help please thanks!!
getJSON() Problem
Do I need any new plugins in order to use the ".getJSON()" method in Firefox? Currently I'm trying to pull back JSON data from a target and the following statement: ${esc.d}.getJSON(targetUrl,function(jsonData,status,xhr) { alert("JSON-DATA=("+jsonData+") !..."); } ); is apparently not working because I do not get an alert when I run it.
How hide/display text
Hi guys, I'm a bit stuck with displaying and hiding text. I created a div which when clicked on expands and moves. Now I want the text that I put in this div to only be shown when the div was clicked upon and thus expanded. I thought I could do this by setting the text like this; <div id="box"> <text style="display: none">Here comes the text..</text> </div> <script> $("#box").click(function(){ $("#box").animate({ width: "500px", height: "300px", borderWidth: "10px", top:
How to send data through headers to restfull web serives
how to send the data using header , i followed the below code but it is not working and not getting error in console also type:'POST', datatype:'json', url:rootURL+"HashValue", data:jsonData, beforeSend: function(jqXHR) { jqXHR.setRequestHeader("test", "test auth=" + token); }, success:function(data,textStatus,jqXHR){
Create html pages from a pdf file?
Hi, I am trying to create html pages from a pdf file. Is there a way to achieve this using jquery? If so, pls let me know. Thanks and regards.
Can not get localscroll to work for me!
I am new to jquery/javascript and finding myself frustrated that I cannot pinpoint where I am going wrong. I have a html webpage, (simplified code below) with a link and anchor; Link - <ul type=none <li><a href="#bookmark2" STYLE="TEXT-DECORATION: NONE"onMouseOver="show4()" onMouseOut="hide4();"<div id="img4" </div</a ><div><font style="font-size:27px" color="#FFFFFF" face="Broadway">ROOMS</font></div> </li></ul> Anchor - <a name="bookmark2" </a> This works as expected, when i click the link
strange white overlay
Hi guys , this is my first post on these forums , anyway i encountered this strange white overlay screen on top of a website that im developing and i have never encountered anything like this and have no idea what it is or whats causing it, its popping up when i hover on top of some div element. its not coming up when i resize the browser its only in chrome its not a DOM element if anyone has encountered something similar, can you help me out?
jquery crSpline - weird animation
Hello, I tried the jquery crSpline plugin (http://archive.plugins.jquery.com/project/crSpline), but I have some weird movement with the last but one coordinate. The top property of the red point goes wild with the last but one position (something like -3000px). Here you can find some code: https://github.com/xseignard/test-crspline and the demo here: http://xseignard.github.com/test-crspline/ Do you see something wrong? Or even better, since the plugin development seems to be dead, do you have an
jquery crSpline - weird animation
Hello, I tried the jquery crSpline plugin (http://archive.plugins.jquery.com/project/crSpline), but I have some weird movement with the last but one coordinate. The top property of the red point goes wild with the last but one position (something like -3000px). Here you can find some code: https://github.com/xseignard/test-crspline and the demo here: http://xseignard.github.com/test-crspline/ Do you see something wrong? Or even better, since the plugin development seems to be dead, do you have an
How to Hide src Ip in frameset generated by Jquery plugin
Hi All, Its many days passed since i am trying to find the solution for how to hide the frameset or frame src attribute that is automatically generated by some jquery function. I have designed a website and have used some jquery plugin so that i can have good image changing effect on the page. I have hosted the site and now when i check the page from outside, and checked browser view page source option , in that my server ip is getting displayed in between the <FRAMESET></FRAMSET> tags in the page
deeper issues with __exposedProps__ and jQuery mobile when triggering create to update gui of dynamically loaded content
With jquery 1.8.1 and jqm 1.1.1 while developing a custom plugin _exposedProps_ issue occurs (I know spare with me thanks). I've been dynamically loading page content (myself cause jqm was not sufficient). When loaded into a div I must call .trigger("create") on that content to get it to reformat jmobile gui look of components. (I'll be deleting all of it next because of this shortly just thought you'd like to know.) Anyway once I call "trigger create", in jQuery the exposedProps violation warning
Change background at click - BgStretcher plugin
Hi, first of all please pardon my english ! I'm using bgStretcher plugin for a website that I'm creating. I would like that a click on a menu element (actually on <li class="toggleSubMenu3">Text</li>) changes the background. So I have created a script with the click function and I have copied the Background Stretcher script. But when I click, instead of having the image that I want in background, It shows the background-color written on bgStretcher plugin stylesheet. Please can anyone help me ? I
Can't get pageinit to work (despite reading doc + forums)
I know a lot of people have asked similar questions, but there must be something I haven't grasped yet... I took the helloworld.html example provided in the tutorial and added a response to the pageInit event. Here are some of the calls I tried, all in vain: <script> $(document).live("pageInit", function(event) {alert ("inside pageinit");}); </script> or <script> $(document).bind("pageInit", function(event) {alert ("inside pageinit");}); </script> or <script> $(document).on("pageInit", function(event)
Datepicker Customisation
I wonder if there is an easy way to change my current jquery ui version for one that defaults the datepicker result format to 'Full'? (i.e. Monday 03 September 2012)
Hide and show various divs
I've got the following code. How to create a certain click function which shows just the div according to the link I've clicked on, the others should be hidden. I've already tried to get the rel attr, saved it into a variable, that didnt work. var rel = $(this).attr(rel); $(rel).show(); $(rel).next().hide(); <a href="#" rel="one">One</a> <a href="#" rel="two">Two</a> <a href="#" rel="thress">Three</a> <div id="one></div> <div id="two">/div> <div id="thress</div>
How to show Row value of a database table into form?
hi friends, i am getting a value form database and want to show only 2 columns value but i am unable to do this with this code.. This is PHP code to fetch data from database ;; <?php $stock=$_POST['stock']; //echo $stock; include("../dbconfig.php"); $result = mysql_query("SELECT * FROM stock where p_name='$stock'"); //query //$array = mysql_fetch_row($result); //fetch result //$array = $array = mysql_fetch_array($result); //fetch result
Dynamic menu in asp.net MVC2 using Jquery or Superfish
Hello all, In the mvc app we are developing, we need to have a menu with menu items coming from sitemap. Can any one please help us to get started with this. I saw couple of posts saying that superfish would be a better solution to achieve this. If so, please provide how do we do that. Appreciate the help Thanks
why doesn't work this simple code ?
<div id="d-source"> <div> <img src="8.jpg" class="pic" id="pic1" /> </div> <div> <img src="9.jpg" class="pic" id="pic2" /> </div> </div> <script type="text/javascript" language="javascript"> $('#pic1').append($('#pic2')) </script>
can any one please tell me how to cache the json data
hi, i want to cache the json data in jquery and use it in some where else..
$.post and load target page
I currently use .append to create a form with hidden fields dynamically, and submit it. however i would like to use $.post instead like $.post("http://www.google.com", { name: "John", time: "2pm" } ); but i need to load page the data was sent to just like a normal .submit but i am not sure how to do this? if anyone could help it would be much appreciated. Script I currently use $('#PaymentBox').append('<form name="PayMent" id="PayMent" action="' + url + '" method="GET"><input type="hidden" name="Aount"
jQuery Tools Scrollable Plugin - Noob in need of aid!
Hey guys! I picked up some material on Javascript and JQuery about a week ago and decided to mess around with some features that inspired me to learn the language. The page is www.ydyn.net/sbl I am trying to implement a scrollable menu from... http://jquerytools.o...lable/home.html The navigation button on the left named 'tools' is considered the 'intro button' and it has a corresponding tab that should appear when the website loads. The 'intro button' is identified as 't0' The intro tab does not
Set html attribute via ajax
OK I got this script doing everything it needs to do. My PHP function in wordpress is sending the correct AJAX response. So why, after nearly 3 hours, can I STILL not set the link's href attribute? I have tried every combination I can think of to get the response into the <a title=""> attribute, but no dice. the <a> does not have a title initially, BTW I've tried this. Even this forum is screwing with me. Next metod tried in reply. jQuery( document ).ready( function( $ ) { $( 'body p.single-quot
having trouble with multiple jquery on a single page
Hi, i´m really new with this, and i have found on the internet different features created using jquery, but when i try to implement them on a single page they stop working, I suppose there´s a problem with the version of the jquery.min.js, but i don´t know how to fix it, could someone please help me with this?
how to send JSON from javascript to php
hi all can anyone tell me how to send a json object from javascript to php? -rvs
Form Validation - Focusing/Updating/Sending
Hi Guys, I am new to jQuery and I am utilising it to try and improve a small business website I am making. I am currently validating a webform which is going great. I have surprised myself how quick it was. I am writing the code in a ('body').append function. Which is working in general however when the users leaves a field using the mouse pointer or tabs (to a checkbox) it does not validate. Tabbing from a text box to a text box does validate :P This has completely confused me haha Summarise Question
html5 audio | IE9 is being very strange indeed
Hi all, I don't think this is actually a JQuery problem but I am hoping that someone here has an answer or at least can point me in the right direction to help solve this problem. I am using JQuery, html5 and CSS to develop music games. Music Teacher's Games I have had no real problems until now with my first guitar game. Guitar Game One The guitar game works perfectly in FireFox, Chrome and Safari(slow loading). It actually functions fine with IE9 excepting that IE9 does not play all the sounds.
Remove subdomain or www?
I have url is : http://www.scenemovie.org or http://subdomain.scenemovie.org I want to keep "scenemovie.org" and remove "http://www.". How to do that with jQuery? Thanks!
Develop jquery Mobile application to play audio and vedio files
hi, I am new to JqueryMobile Framework. My requirement is to develop an application to play audio and vedio files. I developed a simple application using JqueryMobile FrameWork in Icenium Graphit Environment.In this i have to play some audio and vedio files from sdcard.. Please suggest me to go forward.. thank you, srinivas
Calling relative path pages?
Hi guys! Is there an easy way to call pages that is located in different directories? Let´s say i´m standing on a page located in this directory: /pages/test1/page1.html or /pages/test2/page2.html and i wan´t to change page to. /pages/shared/a.html. Is there an easy way to do it?
Best way to keep place in AJAX results?
Hi, I'm trying to make a system kinda like the way Facebook works in their app. Basically you get a list of results, click "Load more" and it would add them to the end of the list. The problem I'm having is that when you click on one of those results and goto the "more info" page using: $.mobile.changePage("detailed.html"); ...then when the user goes back a page, it reloads home.html fully (so you loose your position completely and have to scroll down and load all the results again, which obviously
Why 320 px?
I created the basic Hello World page on the quick start guide (http://jquerymobile.com/demos/1.1.1/docs/about/getting-started.html). On my Galaxy 5 player, which has a screen width of 480px, it's forcing the screen size to 320px. If I add a 450px-wide image to that basic page, I have to scroll to see the entire width of the image. If I remove jquery.mobile-1.1.1.min.css from the head section, the problem goes away. Why do they force my device to a lower resolution, and is there any way around this?
Close button in Jquery mega menu?
Hi Everybody. I use the Jquery mega menu on one of my websites i'm building. I just have one huge problem, really would like to add a "close" button inside the drop down menu. You can see my menu here: www.medidyne.dk/wordpress And you can see what I would like to achieve on this website, when you try to click on the menu: www.novonordisk.com Please help :) I need this website to be done soon...
Next Page