14,053 Topics

Member Avatar for
Member Avatar for Shibbir Khan

$.ajax({ url: "/Configuration/AddServersAdvancedSelect", type: "POST", data: { selectedOUs: that.getByDataSelected() }, async: false, dataType: "html", success: result => { cont.setTabContentFromHtmlString(result, 1); cont.tabClicked($("td[data-value='1']").get(0)); }, error: (xhr, ajaxOptions, thrownError) => { // } }); This is my ajax request towards the server. For some reason the data doesn't get selected. The getByDataSelected function …

Member Avatar for shammi.khan.73
0
418
Member Avatar for f_atencia

Hi all. Suppose I have the following JSON Object: "WorkPhone": { "Phone": { "FixedPhone": "98221234", "Fax": { "CountryCode": "61", "AreaCode": "", "text": "" }, "Mobile": "" } } How can I manipulate the 'FixedPhone' object to look more like the 'Fax' object in Javascript / JQuery? That is: - Remove …

Member Avatar for piers
0
122
Member Avatar for Nabeel_2

$(".qty").change(function(){ $.each($('.qty'), function(){ var form_data ={ rowid: $('.rowid').val(), qty: $('.qty').val(), ajax: '1', }; alert(form_data); $.ajax({ url:"<?php echo site_url('cart1/update');?>", type:'POST', data: form_data, async: false, success: function(data) { alert(data); } }); });

Member Avatar for Airshow
-2
3K
Member Avatar for acrocephalus

Hello, I am building a web registration form using RSForms for Joomla. I need the form to create a QR code with some of the data provided in the form and store it with the user's data. I know this can be achieved using Javascript, but my knowledge on it …

Member Avatar for piers
0
231
Member Avatar for shashikumar s g

hi all i am trying to allow the user to select the folder to store the downloading file using javascript i didnt found input attribute for download like file i try with downloadify.js but its not work their is another way i can do it

Member Avatar for almostbob
0
173
Member Avatar for nadiam

Hi, guys. Im having this weird thing where the buttons not responding to clicks handled by jquery. i got a page which lists events then when an event names is clicked a table of guest list appears next to it. like this: ![cf2669fd96869baa104ebf595b1f206c](/attachments/large/4/cf2669fd96869baa104ebf595b1f206c.jpg "cf2669fd96869baa104ebf595b1f206c") the page is handled by ajax: …

Member Avatar for nadiam
0
284
Member Avatar for SimonIoa

I HAVE A PROBLEM WITH THIS CODE $('.reply_stdelete').live('click',function() { var ID = $(this).attr("id"); //var X=$(this).attr("my"); var dataString = 'c_id='+ ID ; jConfirm('Sure you want to delete this conversation?', '', function(r) { if(r==true) { $.ajax({ type: "POST", url: "<?php echo $base_url; ?>conversation_delete_ajax.php", data: dataString, cache: false, beforeSend: function() { $("#stbody"+ID).animate( { …

Member Avatar for SimonIoa
0
87
Member Avatar for kazilotus_1

I have a page where I have 100 combo boxes. I made this bookmarklet : javascript:document.getElementById("hioooo").selectedIndex = 38; It works but only for the first combo box, all the rest combobox remains unchanged although they also have the id="hioooo". What should I do to change all the combobox selection to …

Member Avatar for kazilotus_1
0
392
Member Avatar for acrocephalus

Hello, I am trying to build a function that takes the input of the IBAN field (alphanumeric), counts them and compares the to the needed value (24). Then, if don't match it triggers an error message, if they match it does nothing. This is the code: <script type="text/javascript"> function checkIBAN(iban) …

Member Avatar for acrocephalus
0
172
Member Avatar for mounika_3

I am using coffee script,when I am trying hit the url..it is not getting redirected to that particualar url and the next steps are getting executed. I am getting this issue only in chrome but it is working fine in firefox previewOpen:-> window.location.href="#/preview" window.setTimeout(@openView(@uuid),500) openView:(uuid) -> $("#design_parts").empty(); console.log("done emptying..."); console.log(uuid) …

0
53
Member Avatar for koneill

I'm calling a simple e-mail validator in JavaScript as the below shows - this works fine as I'm calling it in my HTMl form as such: <form name="email" action="mail.php" onsubmit="return SubMail_Validator(this)" method="POST"> Then this code does the validation that an e-mail has been entered - however - I need the …

Member Avatar for koneill
0
861
Member Avatar for nadiam

Hi. i am trying to show a hidden element using a button. but i want to make it so that everytime the button is clicked the hidden element get shown that same amount as button clicked. example: <input type="button" value="Click me" id="clickme"> <input type="text" id="textbox"> <script> $(document).ready(function() { var element …

Member Avatar for AleMonteiro
0
16K
Member Avatar for piers

Hi, I am trying to take a number entry from a text field to use in some round Robin code to output the data. When I type a number for the variable num e.g. var num=12; the program works fine, but if I try to do it from text field …

Member Avatar for piers
0
167
Member Avatar for nadiam

Hi, so i have this list of table seats like table of 6, table of 8 that kind of thing and i have images(width and height:110px) that correspond with those seats but by default they are hidden using `.hide()` and there is also a div(width:880px, height:350px) where these images would …

Member Avatar for nadiam
0
333
Member Avatar for ankit1122

hello, <?php $q=$_GET['q']; //echo $q; $con=mysqli_connect("localhost","root","",$q); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $abc=mysqli_query($con,"use $q") or die('cannot show tables'); $result=mysqli_query($con,"show tables"); echo "<select id='abc'>"; while($row= mysqli_fetch_array($result)) { echo "<option value='". $row[0]. "'/>" . $row[0] . "</option>"; } echo "</select>"; ?> i want to response …

Member Avatar for diafol
0
186
Member Avatar for koneill

All, I'm wondering if their is a way to use the CSS clip to place my image propational within another image. In this case - I am giving users the ability to upload their own image: As an example - this URL shows the uploaded image: http://www.pinkcloud.com/custom_clock/submit.php?upload_message=image uploaded&upload_message_type=success&show_image=kmo_mikeg.jpg Here are …

Member Avatar for mattster
0
338
Member Avatar for dschuett

I have a scroll function that I want to fire when the user scrolls to the very bottom of the page. However it is doing the exact opposite; it is firing at the top of the page. I have used this before, and everything on the web says to do …

Member Avatar for AleMonteiro
0
300
Member Avatar for Siberian

Using AJAX is better then iFrames because things are dynamic, instead of making a call to the server to load an entire HTML page, you can do it dynamically, one question remains. Can I style the look of, and this ties into another thread I started, scroll bars etc ? …

Member Avatar for Siberian
0
165
Member Avatar for nadiam

hi. i just want to know if that is possible. for example there are 5 blank textboxes with no specific id or class: <input type="text"> <input type="text"> <input type="text"> <input type="text"> <input type="text"> is there a way to loop through the textboxes and find the first blank textbox? say the …

Member Avatar for Airshow
1
3K
Member Avatar for hanspeare

Good Day Daniweb, I am encountering a problem in php code meant to allow the user to update their profile picture. I am using jquery.min and jquery.js. The code below runs with no errors reported. The file has been successfully uploaded to upload path using this form. upload.php <form id="imageform" …

Member Avatar for hanspeare
0
5K
Member Avatar for adishardis

Hi, I have en stdClass object array that looks like this Array ( [10] => stdClass Object ( [inlast] => 2013-02-15 00:00:00 ... etc Where the first number (10) is the uniqe identifier for that row, and the array contains all the rows in the table. So my question is …

Member Avatar for pritaeas
0
196
Member Avatar for piers

Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing …

Member Avatar for piers
0
3K
Member Avatar for Priti_P

Hello, using for each of jquery am fetching td's name but if try to test it by removing name from firbug and try to submit it then my code is breking. so first question, what should anyone do in such case? and another regarding my code is: $('#SkillDetails_table tr').each(function() { …

Member Avatar for kaleemullah360
0
101
Member Avatar for maxbummber

I am trying to learn how to use jQuery and I stumbled upon this code and the requirements below: * disable all the cells from "Every Monday" till "Every Sunday" as the initial status; * make "Never" exclusive from all the rest of options in the same row; * make …

Member Avatar for pritaeas
0
352
Member Avatar for ravi142

Hello How can i add ID='xyz'in IMG tag <div class="main-banner"> <img width="1000" height="242" alt="cropped-Penguins.png" class="attachment-full" src="http://../cropped-Penguins.png"> </div> JQuery which i have tried jQuery('.main-banner').append("img").attr('id','xyz'); But Not Work. Give me suggestion Thank you

Member Avatar for noelthefish
0
128
Member Avatar for vizz

[CODE]<div id="wrapper"> <div id="header"> <p>This is the Header</p> </div> <div id="navigation"> <p>This is the Navigation</p> <a href="#">Home</a> <a href="#">About</a> <a href="#">Contact</a> </div> <div id="content"> <p>This is the main content</p> </div> <div id="footer"> <p>This is the Footer</p> </div> </div>[/CODE] This is my HTML code. I have menus in navigation div. Content …

Member Avatar for diafol
0
4K
Member Avatar for vivosmith

Hello, I have been trying to move this box, but so far all common ways of moving the javascript box (whitespaces, CSS) have not worked. I have tried searching the web, amongst other things, and so far nothing has worked. Here is the code: <html> <head> <title></title> <style type="text/css"> #AgodaSearchBox{ …

Member Avatar for mattster
0
250
Member Avatar for markii.borabon_1

Im trying to dynamically add fields when add button is being press.. my code here works perfectly but.. what I want is when I click any of my fields it must add instantly and dynamically .. here:: $(document).ready(function() { var max_fields = 10; //maximum input boxes allowed var wrapper = …

Member Avatar for JorgeM
0
224
Member Avatar for ivan.moony

New version of Moony Parser is out (2.4) It is an Earley parser implementation and accepts Structured-BNF as grammar input. You can try it online at: [http://parser.moonyweb.com](http://parser.moonyweb.com)

0
77
Member Avatar for Mr Programmer

What I want to do is to show an email sign-up pop up when a link is clicked. This is how I am referencing to the external sumome.php file, which contains the js function: <script type="text/javascript" src="http://www.barcabyfans.com/wp-content/themes/hueman/sumome.js"></script> This is what I am writing for the link: <p>Get more awesomeness <a …

Member Avatar for oriclon
0
320

The End.