15,698 Topics

Member Avatar for
Member Avatar for ping0ping

Hi I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ----> index.ctp I managed to get the content of page.ctp using below method. $.get('http://localhost/pages/10', function(data) { console.log(data); }); But based …

Member Avatar for ping0ping
0
164
Member Avatar for |-|x

Hi All I'm looking for ideas or suggestions about how to implement this feature. The concept is I have 2 dropdown select boxes, with data that is not directly related (in the sense that there is no identifiers or foreign keys or anything within the data itself) but that have …

0
103
Member Avatar for Dani

Hi, I'm completely desperate for some help. I am getting a handful of reports that DaniWeb keeps crashing the web browser. Most of these reports are coming in from Firefox. Supposedly the problem is fairly consistent. I *cannot* duplicate the problem no matter how hard I've tried. I spend a …

Member Avatar for neatric
0
447
Member Avatar for subtlehulk

Hello. I have a little problem with some work i've been given to study and i am meant to build a little bingo application. We have to modify our co-workers' code so that it fits out own little scenario. I've chosen to do a British Bingo card application and my …

Member Avatar for JorgeM
0
4K
Member Avatar for elya158

Hi, I'm building a battleship game that has multiple sessions over an apache server. It's a server/client containing servlets & jsp's. Let's say i have a jsp page that shows all the boards, for each session i want this page to be refreshed as soon another player makes a move. …

Member Avatar for johannsig
0
1K
Member Avatar for h2so4_2003

Hello, > Quoted Text Here I have put 'jQuery validation' to validate a form and it validates very well n looks perfect in firefox but in chrome when I type anything in some texboxes, error messages gets incremented as much as I type characters in texboxs and my form gets …

0
61
Member Avatar for jbutardo

Good day! I need help.. I have to check if the textbox value is in the dropdownlist items, and I don't know how to get this in javascript. I wanted to validate it in such a way that if the textbox value is in the dropdownlist item values, then the …

Member Avatar for code739
0
193
Member Avatar for azareth

i have this code, it's purpose is to automatically add a colon when the index is 2, i have done it, but when replacing(overwrite) index 2 where (:) is, you can replace it with a different char, so basically colon will be removed. and also what if the user has …

Member Avatar for azareth
0
2K
Member Avatar for itisnot_me

Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); …

Member Avatar for itisnot_me
0
200
Member Avatar for vgutta

Basically, I have a JSP page. I want to know if the javascript is disabled or enabled. Based on that I need o display the content. If JS is enabled I need to display click to update hyperlink which will shown the firstname, lastname when clicked whereas if JS is …

Member Avatar for |-|x
0
80
Member Avatar for HTMLperson5

I would like to write a page which accepts Value of textbox / input-field using javascript. As you get values from this: <script type="text/javascript"> var cheese=1 document.write(cheese) </script> Maybe the value `cheese` could be taken from text which the user has to enter....how?

Member Avatar for code739
0
15K
Member Avatar for |-|x

Does anyone know a good way to force javascript to evaluate all operands in a boolean expression? In particular, what I am tring to do is essentially this: return isValid(a) && isValid(b) && isValid(c); while this technically does work, the function is responsible for highlighting invalid areas on the form …

Member Avatar for |-|x
0
429
Member Avatar for klemme

I have this succes message that the visitor sees after submitting the contact form via ajax using jquery: My question is: How can I first fadeIn the image, and then "500 later" fadeIn the rest of the text that is appended after the image? -Now it fades in all at …

Member Avatar for Example
0
219
Member Avatar for samxa

hey, i'm looking for a simple script that will display 3 images in the same page as the upload button is present in. would be great if you help me with this. thanks a ton!

Member Avatar for Example
0
60
Member Avatar for Nassarofficial

am new at querying, I wanted to change the code below to query my data for the "Date" column, "population", and "education". In the continuation of my code, I have 3 checkboxes to filter out the data pertaining to the date, and the selector to select which color coding and …

0
86
Member Avatar for mariaceline_21

error Please select an imageError: Duplicate entry '' for key 'img' ` //file properties $file = $_FILES['image']['tmp_name']; if(!isset($file)) echo "Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['img']); $image_size = getimagesize($_FILES['image']['tmp_name']); if($image_size==FALSE) echo "That's not an image."; else { { if(!$insert = msql_query("INSERT INTO shop (id, img, …

Member Avatar for vibhaJ
0
156
Member Avatar for utroda17

Hello, I'm trying to load ad on my site dynamically and I can't seem to get it to work... Well I can get it to work using vanilla javascript, but not with jquery & I would like to use jquery if possible. thisAd = $(oAds[i]); sPos = thisAd.attr('data-adname'); // if …

0
60
Member Avatar for bdolla

Hello - I'm looking for advice on the best way (or possible ways) to set up a project for work. I have access to our companies internal web server (for employees), and a MS access database that all users have access to, located on a shared network drive. I need …

Member Avatar for JorgeM
0
203
Member Avatar for vizz

I'm using [raphaeljs](http://raphaeljs.com/). I want to write function -to draw arc- like this, $("#arc").drawArc({ strokeStyle: "#000", strokeWidth: 1, x: 100, y: 100, radius: 50, start: 45, end: 135 }); Above code can draw 90° arc How to make work above function work using [raphaeljs](http://raphaeljs.com/)? [Example](http://raphaeljs.com/polar-clock.html) [For Arcs calculations](https://developer.mozilla.org/En/Canvas_tutorial/Drawing_shapes)

Member Avatar for pritaeas
0
140
Member Avatar for fabzster

Hi I pull data from a MYSQL database to populate a Drop down <td class="<?php print $Bank_ca_error;?>">Bank Name</td> <td> <select name="Bank" id="Bank" tabindex=24 style="color: <?php print $TextColour;?>"/> <option><?php print $_SESSION['Bank_ca'] ;?></option> <?php //Get Data to populate drop down $BankQuery = "SELECT BankName FROM tblbank ORDER BY BankName"; $BankResult = mysql_query …

0
78
Member Avatar for sara5454

this is my code (html) i dont know how can i open the page in div , i try with iframe but is failed :/ plz help me! <html> <head> <title>Template</title> <script type="text/javascript" src="script.js"></script> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> …

Member Avatar for almostbob
0
387
Member Avatar for ak47carbon

i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it …

Member Avatar for ak47carbon
0
227
Member Avatar for mbarandao

I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are …

Member Avatar for mbarandao
0
80
Member Avatar for evalina1987g

Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if …

Member Avatar for code739
0
91
Member Avatar for VenusCrystal

Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: <table width='100%' cellpadding='0' cellspacing='0' > <tr> <td valign='top' width='70%'><span class='header-text'> </span> </td> </tr> </table> I need to add css style to the table. I can access span element of td within table. …

Member Avatar for VenusCrystal
0
173
Member Avatar for danisaurus

hi everybody i need for mi [hobbie web app](http://www.buscocolegio.com) a transference between a java array and a javascript array. this is what i have tried to accomplish but it doesnt seem to work well: <script type="text/javascript"> var arrayJS=new array(); <% String[] javaArray=(String[])request.getAttribute("names");%> arrayJS=<%=javaArray%>; for(var i=0;i<arrayJS.length;i++) //data processing any help would …

Member Avatar for stbuchok
0
69
Member Avatar for riahc3

Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to …

Member Avatar for riahc3
0
172
Member Avatar for ruchi18

Hi $(window).load(function(){ var p = 0; function moveit(target,shift) { p += 0.01; var r = 135; var xcenter = 700; var ycenter = 350; var newLeft = Math.floor(xcenter + (r * Math.sin(p + (shift || 0)))); var newTop = Math.floor(ycenter + (r * Math.cos(p + (shift || 0)))); target.animate({ top: …

0
60
Member Avatar for fantasma

Greetings! I'm at the moment stuck with something that would be very trivial, but, since I'm not that versed in jQuery and Zepto I can't figure out a way to solve it. I need to animate a slider With jQuery everything works fine $('.slider').animate({ left: '-=1024px' },500); } But with …

0
59
Member Avatar for diafol

Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: <object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object> Then in the head area: <script type="text/javascript" id="WCIDWAXScript" defer="defer">function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = …

Member Avatar for diafol
0
340

The End.