15,697 Topics

Member Avatar for
Member Avatar for masocha

Hello. l am using panzoom [Click Here](https://github.com/timmywil/jquery.panzoom/) plugin. Problem is the plugin allows the image to pan into invisibility. Does anyone know a way l can stop the panning before the image goes into the invisible part of the page.

Member Avatar for LastMitch
0
72
Member Avatar for Kleon

I want to writ a jscript code that asks user to type (example) his name and than that name to be stored in variable x. this is what i have done so far, i am very new on jscript se please somebody can correct me with this. var x = …

Member Avatar for JorgeM
0
152
Member Avatar for mmcdonald

Hi all, I'm using AJAX to reload a div within my script. However it frequently causes the browser to crash. It's happened on two different local environments and I've only been able to test using chrome. Chrome presents this screen: http://i.imgur.com/wq2v7SJ.png The code used to reload the div is: <script …

Member Avatar for mmcdonald
0
210
Member Avatar for AndrisP

How I can passing quantifier as variable in this regexp `str.match(/^(\-)?\d+( (\-)?\d+){3}$/)`

Member Avatar for AndrisP
0
181
Member Avatar for tusharbhatia

Hi, I am trying to create an application which utilizes the distance finder. I want to be able to calculate the distance between two points. I have managed to (with the aid of a lot of tutorials) be able to calculate the distances between two points. Now, in the application, …

Member Avatar for Ravi_10
0
5K
Member Avatar for yaragalla_mural

Hi I have 5 div tags in my html page and there is a print button. when i click on the print button it has to print only a particular div. for example it has to print the 2nd div which contains some personal information. It should not print the …

Member Avatar for JorgeM
0
498
Member Avatar for AK777

Greetings, I am looking for suggestions and feedback about needed bandwidth from a Web hosting company (thinking of VPS or Dedicated) for my websites. Earlier I had asked about how to insert thumbnail (live) images, if possible, of other websites so that users can see a preview (live) of the …

Member Avatar for AK777
0
168
Member Avatar for boney

Hello, My HTML+JS : <head> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).attr('checked')) { p.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: {list:p}, success: function(res) { $("#result").html(res); } }); } function passType() { var q=[]; $('input.second').each( function() { if($(this).attr('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { …

Member Avatar for boney
0
225
Member Avatar for shasta90

What option for cURL needs to be changed in order to retrieve the XML content, as I have added the curlopt option for xml content but all that happens is the JS error of "no data received" <?php $agent = $_SERVER["HTTP_USER_AGENT"]; $timeout = 5; // set to zero for no …

Member Avatar for shasta90
0
409
Member Avatar for YakuzaJevin

Can someone help me with my codes about the log in using javascript, everytime i log in it opens a new window for the homepage, but i want it to be in the same window, thank you :D <html> <head> <title> Login page </title> </head> <body background="black_background_metal_hole_very_small-wallpaper-2560x1600.jpg"> <h1 style="font-family:Comic Sans …

Member Avatar for YakuzaJevin
0
234
Member Avatar for alex.plouff

needing help with homework - calculator using javascript i need to grab the text from the <input> and use that number in the equation. <script> function runMe(){ var x == document.getElementById('input1').value; document.write(x); } </script> <body> <form> Enter number <input type="text" id="input1" value=""> <input type="submit" onClick="runMe"> </form> </body>

Member Avatar for AndrisP
0
123
Member Avatar for Violet_82

Chaps, I run into a strange problem today for the first time. Basically I have a web page that users can print using a print button on the page itself, but what I want is them to be able to print a print-only version of this page. So, I wrote …

Member Avatar for Violet_82
0
262
Member Avatar for shrikanthnk

hi kindly help me here..... i have written code like this to display **hi** when page gets loaded. please correct it this code so as to display message. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#b").load(function(){ alert("hi"); }); }); </script> </head> <body> ......... ...... .... </body> </html>

Member Avatar for JorgeM
0
128
Member Avatar for shrikanthnk

Hi All, Below code gives me exact result which I want.. output gets displayed at div # result which is as per design. Now i wouldlike to know is there any method to display result in textbox? if so please help me. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> { …

Member Avatar for diafol
0
583
Member Avatar for giovannitao_1

Hello, I'm working to cellphones spec script. Now I want to create a sidebar with several checkboxes that filter result using ajax. Someone can help me to create this?

Member Avatar for giovannitao_1
0
108
Member Avatar for miguel1810

Hey, I could sure do with some help on this... Been pulling my hair out. I have a single HTML file with various page transitions - I am trying to solve the coding issue to allow me to have four new blog pages - but that all default to the …

Member Avatar for mmcdonald
0
163
Member Avatar for mmcdonald

I'm about 80% into my first attack on JQuery/AJAX... how would one correctly write this function: function reloadResponses(){ $('#responses').load('pages/community/load-responses.php?id=<?php echo $id;?>'){ window.setTimeout(reloadResponses, 10000); }; }; I would like to reload `<div id="reponses"></div>` every 10 seconds. Is this the best way? I am currently using this to reload the div every …

Member Avatar for mmcdonald
0
215
Member Avatar for MartyWooly

Hello all! I'm new to responsive web design and I realize that it's fairly vital to desigining a good website today, what with today's ever changing screen sizes it's become vital to make sure my pages display well. So my question to everyone is this; Are there any Tools, Web …

Member Avatar for alexloxton
0
2K
Member Avatar for ObSys

I am looking into blogging technology, specifically using XML files to hold blog posts and reading them into a webpage using Javascript. I have been looking at the w3schools website for bits of code but for some reason my application does not display the content on the screen. My code …

Member Avatar for JorgeM
0
500
Member Avatar for hemanshurpatel

Hello friends. I have a php form and using ajax/javascript function to do get request. In form, there is a field name and checkbox, and In java script I have to get the fied name, check if the check box is clicked or not and add the paramater to url …

Member Avatar for hemanshurpatel
0
251
Member Avatar for hemanshurpatel

Hi there, I am working on a chart generator application and I'm using google chat as a chart tool. You have to pass different parameters to chart script that you want to show on chart. I want those parameters to be dynamically change. Say there are 20 different parametes showed …

Member Avatar for hemanshurpatel
0
171
Member Avatar for satheeshkumar14
Member Avatar for devianleong

Hi,currently i m developing a PHP Cart. I have a php function is call product option value. When Admin adding product ,ajax will load my php function without refreshing page to allow admin to select the option like color,size etc. In my php function got no any submittion data but …

Member Avatar for devianleong
0
232
Member Avatar for durgesh1

here is html and php code i like to pass video from my database to this via jquery on click action i try to do something like this but it fail jquery code `jQuery("#player").val(data["video"]);` <p> <label style="width:87px">Video:</label> <div id ="show_image2" style= ""> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player" name="player" width="500" height="300"> <param name="movie" …

Member Avatar for durgesh1
0
318
Member Avatar for websponge

`<a href="#" onclick='contacts($code)'>Contact Details</a>` This runs a jquery code with the value $code. in Firebug I can see it gets the correct rowset value, the jquery is below: function contacts(code){ jQuery.ajaxSetup({async:true}); jQuery.post("php/contact.php", {code: code}, function(data) { $('#results').hide(); $('#results').fadeIn(2000); $('#results').show() .html(data); }); } it is supposed to post this value to …

Member Avatar for anthonydaly
0
437
Member Avatar for gahhon

i am using ASP.NET and i am able to detect the close the tab where's the `<body onunload="xxx">` but i don't know inside the xxx method how to window.open to another page with new window.

Member Avatar for JorgeM
0
412
Member Avatar for alpay.can.984

We have this code, thanks to a helpful person but it does not fully work as expected. The problem is that it currently checks for an exact match of dates, but there are situations of times that overlap one another and that should show a conflict too (background becomes red …

Member Avatar for stbuchok
0
163
Member Avatar for orange88

QUESTION: My need is to include a specific datepicker for EACH form when a specific button is clicked. Im not sure whether what im doing below in the jquery portion of the code for the datepicker is correct? Can someone please guide me with this? Thanks DETAILS: I am currently …

Member Avatar for LastMitch
0
765
Member Avatar for woodenduck

How can I prevent a XSS attack but allow user to post iframe and img? My page is php based but I allow users to submit text and have allowed only iframes and imgs with strip_tag How do I prevent a user from launching an xss attack?

Member Avatar for woodenduck
0
347
Member Avatar for saadi06

Hi, I am using jquery tabs for displaying data.And while displaying the data in the tabs I have to use ajax again to display data. The data in the first tab is giving the desired result. But when I click on the second tab. The tab is loaded correctly. But …

Member Avatar for LastMitch
0
246

The End.