15,116 Topics

Member Avatar for
Member Avatar for tqmd1

Dear Sir, I am using these codes <!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"> <head><title>My Contacts</title> <style type="text/css"> html { overflow:auto; } body{ background-color:#e7f4fe; } #container { margin: auto; position:absolute; top:0;left:0;right:0;bottom:0; background-color:#CFC; padding:10px; overflow:auto; width:300px; height:300px; } </style> <body> <div id="container"> <form action="" method="post" enctype="multipart/form-data"> <img align="middle …

Member Avatar for tqmd1
0
207
Member Avatar for lm111

I am having problems displaying a map. Data in ListView is showing on the page but the map is missing. I would appreciate some help. Here is what I have so far: The following pieces of code are in MyDirectory.Master page: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> function init_map(map_canvas_id, lat, lng, zoomLevel, markers) …

Member Avatar for lm111
0
329
Member Avatar for RikTelner

Yes I've looked already at internet, 3 different queries, 5 pages each, looked on StackOverflow, then its marked as offtopic question, searched through here, answer related like sun and pancakes. My question is, how can I store content of file into variable? While I was Googling I came on this …

Member Avatar for Troy III
0
358
Member Avatar for saad.sarwar.33

I am currently thinking of writing an AutoFill plugin/widget which will take my personal data such as First Name, Last Name etc from a file/javascript and will automatically fill it in web page form. I have read till now to build a plugin which works for all browsers, I have …

Member Avatar for Troy III
0
112
Member Avatar for hallianonline

I am creating a little template for my website but getting an error i think so in jquery actually i want to repeat the price terms toggle option multiple times on a single page e.g. 1 month 6 months 12 months term. All is ok but on 2nd tab when …

Member Avatar for hallianonline
0
156
Member Avatar for Linddha

Hello, Im new in Ajax.. i try to make an ajax input, and show the result without refresh page. i've success to input data with ajax (pure ajax), but i cann't show the result ?? when i look for a problem, .. it couse of the there a line break …

Member Avatar for Linddha
0
292
Member Avatar for Annuscha

Hi, I'm trying to chage the name of 3 select boxes, I got the input name to change correctly but I'm pulling my hair out with the select boxes. If you check fiddle after cloning the text fields name chages to name="dose_value[a1]", each time it's cloned a number gets added. …

Member Avatar for JorgeM
0
201
Member Avatar for patk570

Hello, I have a form that i would like to convert from JS onClick to AJAX, Here is my form: <form action="" method="post" name="filter"><input id="All" onClick="if(document.forms['filter'].elements['All'].checked)window.location.href='?page=1&amp;filter=All&amp;perpage=10'" name="All" type="checkbox" /><label style="background:#008080; font-size:small" for="All">All</label> <input id="Pending" style="background:#FF6262" onClick="if(document.forms['filter'].elements['Pending'].checked)window.location.href='?page=1&amp;filter=Pending&amp;perpage=10'" name="Pending" type="checkbox" /><label style="background:#FF6262; font-size:small" for="Pending">Pending</label> <input id="Complete" style="background:#7BCC70" onClick="if(document.forms['filter'].elements['Complete'].checked)window.location.href='?page=1&amp;filter=Complete&amp;perpage=10'" name="Complete" type="checkbox" /><label style="background:#7BCC70; …

Member Avatar for Airshow
0
486
Member Avatar for tqmd1

Dear Sir, When control enter in any textbox then following codes must run. Please help me what is wrong with my codes <html> <head><title>My Contacts</title> <style type="text/css"> body{ margin-top:100px; margin-left:100px; } </style> <script type="text/javascript"> $(document).ready(function(){ $('input[type="text"]').onfocus(function(){ $('input[type="text"]').css({ "background-color:silver" "font-size:12px" "color:green" }); }); }); </script> </head> <body> <form> <input type="text" name="text1"><br …

Member Avatar for tqmd1
0
128
Member Avatar for An

Hi, I start learning javascript and ajax currently. The code index.php below is perform Ajax <!--- AJAX ---> <script> function showData(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } …

0
94
Member Avatar for david.roun.7_1

Why is it that, the only way this will work is if I pass the entire: add(document.getElementById('num1').value) to the function, as opposed to simply adding: add(num1) <script> function add(num1){ total=num1*1+3; alert(total); } </script> </head> <body> <input type="text" id="num1" size="4"> <input type="button" onClick="add(document.getElementById('num1').value)"; </body> </html>

Member Avatar for Airshow
0
150
Member Avatar for nadiam

hey guys, so im trying to do the image slider with js but its not working. only the first pic: pic1, displays then it doesnt slide. code: <script type="text/javascript"> <!--> var img1=new Image() img1.src="image/pic1.jpg" var img2=new Image() img2.src="image/pic2.jpg" var img3=new Image() img3.src="image/pic4.jpg" var img4=new Image() img4.src="image/pic5.jpg" var img5=new Image() img5.src="image/pic3.jpg" …

Member Avatar for nadiam
0
243
Member Avatar for GlenRogers

Hi, I'm using a shopping cart js plugin called simplecart. Im having trouble getting a tumb of the product image to appear with the product info in the cart. This line gets the full sized image to appear in the cart <img src='$file' class='item_thumb' alt='{$row['name']}' /> Does anyone know how …

0
137
Member Avatar for ypdev2

Hi, I am using jQuery function to calculate total of item price (label) multiply by quantity (textbox), this is working fine so far. Also, I added additional label for shipping which getting the data from rbl object, also working fine. The calculation I'm trying to get is sum of total+shipping, …

Member Avatar for stbuchok
0
3K
Member Avatar for lakshmishree
Member Avatar for Moderns

Hello, I am using counter to count characters in text area. Now the problem, if the number of characters calculated = 160 characters, then when I send the paragraph to my mobile phone, I get 162 characters, I got the reason, but can't find solution yet. Example: write normal paragraph …

Member Avatar for Andrea_1
0
4K
Member Avatar for Lonestar Jack

How can I see the data that I passed through the following script? $('#btn_update').click(function(){ $.post("../inc/set_session.php", { key: "phone_mode", value: "update" }); var data = $('addform').serializeArray(); $.post('phones_post.php', data); });

Member Avatar for Airshow
0
164
Member Avatar for T4gal

I found a script online to have a div stick to the top of the window once you scroll to it, and I got it working fine in Firefox and Opera but in Chrome and Safari the sticky div stops before it gets to the bottom of the page. It's …

Member Avatar for T4gal
0
131
Member Avatar for tqmd1

Dear Sir, I have following codes <!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"> <head><title>My Contacts</title> <style type="text/css"> body{ margin-top:200px; font-family:Georgia, "Times New Roman", Times, serif; } </style> </head> <body> <center> <img src="Photo96.png"><br/> <a href="">Get Photo</a> </center> </body> </html> It shows this image [IMG]http://i40.tinypic.com/141saa0.jpg[/IMG] I want to upload …

Member Avatar for diafol
0
185
Member Avatar for luckyuser

I would like to replace ".city1{background:red;}" with ".city1 with http://city1.example.com" so that when user selects a city1 the page goes to the city1 url page. Since I don't need the color box with a message, can I remove the code: var cityChosen = getCookie('citychosen'); if(cityChosen!=null && cityChosen!=''){ var chosen = …

Member Avatar for diafol
0
521
Member Avatar for luckyuser

The cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. Anyone good at cookies? Any help will be very much appreciated. $(function(){ var city = getCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ …

Member Avatar for diafol
0
327
Member Avatar for imchivaa

Hi everyone, Again, i am here for the second time. My current problem is kinda complecated for me. I am developing a project using Codeigniter framework for php. I am using SSE to display notification from a table in the database without user refreshing the page. From a view (view1), …

Member Avatar for imchivaa
0
2K
Member Avatar for ghosh22

Hi I am a beginner programmer and I am really interested about learning new skills. So I need your help. I have a question regarding designing. I want to design a website where the user will be first shown couple of example page designs/template and then the user chooses one …

Member Avatar for diafol
0
285
Member Avatar for mmcdonald

ello ello, I'm currently calling a file using JQuery but every so often (very randomly) Google Chrome would crash (Just the tab, not the browser). Soooo I began investigating and discovered that browsers cache AJAX calls? This would mean that the tab would be using a stupid amount of memory …

Member Avatar for mmcdonald
0
170
Member Avatar for within24

I was reading through http://calebjacob.com/tooltipster to achive a cool tooltip, but seems not working for me :( any one please write me the code to achive this tooltip effect -> https://dl.dropboxusercontent.com/s/g2y9zrn9deljxhq/tooltip.jpg Will be great helpful. Please help.

Member Avatar for iamthwee
0
89
Member Avatar for imchivaa

Hi, I have a simple problem here but i have no idea how i can do it with javascript. I have a php script which will grab data from database from time to time (Server Sent Events) and i use ajax to display those data without refreshing the page. I …

Member Avatar for imchivaa
0
311
Member Avatar for gkumaravel

I am new to web development, now i want to learn javascript for web development and plugins development, please tell me good sites for learn javascript, "GOOD SITE MEANS REAL TIME EXAMPLES FOR EVERY LESSONS AND TUTORIALS"

Member Avatar for pritaeas
0
157
Member Avatar for marComm

Hi, I am trying to add a new set of filters to one large set of data on this page: http://vigstage.pearsonhighered.com/etextbooks/titles-available/index.html I modified code that I took from a different site- I am calling a data.js file that filters by discipline. I want to add a second set of filters …

Member Avatar for marComm
0
129
Member Avatar for giwrgos.mylwnas.3

I am breaking my head for last 2 weeks trying to create an app that will be iOS and Android using HTML5 and jQuery Mobile. I need my app to contact a server to get data. I was trying Ajax but it can not be done because of cross domain …

Member Avatar for mustafaneguib
0
191
Member Avatar for Indians

here i am store the dynamic row values into mysql. i am using jquery and javascript for dynamic rows and auto calculation and then stored to mysql using php coding. that works perfectly. i already added dynamic row value into mysql perfectly. But, now i want to edit the table …

Member Avatar for Indians
0
1K

The End.