Search Results

Showing results 1 to 40 of 313
Search took 0.02 seconds.
Search: Posts Made By: Luckychap
Forum: JavaScript / DHTML / AJAX 12 Days Ago
Replies: 8
Views: 380
Posted By Luckychap
Even better:

$(document).ready(function() {

$("ul.sc_menu a").click(function()
{
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"}, function(){
...
Forum: JavaScript / DHTML / AJAX 12 Days Ago
Replies: 8
Views: 380
Posted By Luckychap
May this help

$(document).ready(function() {

$("ul.sc_menu a").click(function()
{

$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"});

$.post('projects-agent.php',...
Forum: JavaScript / DHTML / AJAX 13 Days Ago
Replies: 3
Views: 267
Posted By Luckychap
Try this example:


<html>
<head>
<title>Handling onClick for links</title>
<script>
<!--
function confirmLink()
{
Forum: JavaScript / DHTML / AJAX 13 Days Ago
Replies: 3
Views: 267
Posted By Luckychap
NO, both will behave differently if you click 'cancel' on confirmation dialog instead of clicking 'ok'.

Now its ur job to figure out something from this.
Forum: JavaScript / DHTML / AJAX 13 Days Ago
Replies: 2
Views: 248
Posted By Luckychap
function getId() {
var table = document.getElementById('your-table-id');
var rows = table.getElementsByTagName('tr');
var newId;
if(rows && rows.length) {
var lastRowId =...
Forum: JavaScript / DHTML / AJAX Sep 3rd, 2009
Replies: 3
Views: 284
Posted By Luckychap
This code seems absolutely fine. But you need to check if function 'HandleResponseFlowButtonSize(response)' is called only once.
And also check if function 'getbuttonSize(id)' is called once for...
Forum: C Sep 2nd, 2009
Replies: 3
Views: 449
Posted By Luckychap
You can use {} with arrays only when initializing.

char ba[25][12] = {"item[0][0]", "item[0][1]", "item[0][2]",......, "item[0][11]",
"item[1][0]", "item[1][1]",...
Forum: C Sep 2nd, 2009
Replies: 2
Views: 286
Posted By Luckychap
What you want from us to do from this crapy code. No code tags, no comments.

Please put code tags and comments in your code.
Forum: JavaScript / DHTML / AJAX Sep 2nd, 2009
Replies: 3
Views: 284
Posted By Luckychap
As you know Ajax is asynchronous, so your thinking is correct. The variable is set synchronously and respond is asynchronous(ajax). Check your code where the ajax request has completed for that...
Forum: JavaScript / DHTML / AJAX Sep 2nd, 2009
Replies: 2
Views: 326
Posted By Luckychap
There is no mechanism for bring content out of local domain with Ajax.
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009
Replies: 9
Views: 534
Posted By Luckychap
Appreciated!
Thanks to all.
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009
Replies: 9
Views: 534
Posted By Luckychap
We usually encounter this problem when working with embedded devices (settop boxes etc.) where there is very less memory. We need to free memory where ever its possible.
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009
Replies: 9
Views: 534
Posted By Luckychap
Thanks gentlemen,

So, using 'delete' OR '[]' will delete all the items (and memory) associated with the array.

Please confirm this.
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009
Replies: 9
Views: 534
Posted By Luckychap
Hi all,

I want help from all you wonderful guys. I want to know how can we free memory occupied by an Array. That means all the elements associated with this array should be deleted.

let say: ...
Forum: JavaScript / DHTML / AJAX Aug 11th, 2009
Replies: 22
Views: 1,032
Posted By Luckychap
Well if rowIndex is same always, then inpN.length can be used to set ids:


inpR.id = 'textBox_' + inpN.length + 1;


If this does not work, you have to use some sort of counter as suggested by...
Forum: JavaScript / DHTML / AJAX Aug 11th, 2009
Replies: 22
Views: 1,032
Posted By Luckychap
Sorry for typo it must be:


inpR.id = 'textBox_' + oRow.rowIndex+1
Forum: C Aug 11th, 2009
Replies: 9
Views: 574
Posted By Luckychap
Sorry got no clue.

But may this will help: http://support.microsoft.com/kb/245184
Forum: JavaScript / DHTML / AJAX Aug 11th, 2009
Replies: 22
Views: 1,032
Posted By Luckychap
If all is working fine then you can use rowIndex as generating id.


function add(oRow)
{
var selObj = oRow.getElementsByTagName('select')[0];
if(selObj[0].selected){...
Forum: C Aug 10th, 2009
Replies: 9
Views: 574
Posted By Luckychap
Can you post the code that result in termination.
Forum: JavaScript / DHTML / AJAX Aug 10th, 2009
Replies: 3
Views: 436
Posted By Luckychap
Hope this little code will help you:


<html>
<head>
<style>
div#clock {
position: absolute;
border: 2px solid ccc;
background-color: c0f;
Forum: JavaScript / DHTML / AJAX Aug 3rd, 2009
Replies: 2
Views: 352
Posted By Luckychap
I hope this will help you:


<html>
<script>
function callAll() {
for(var i = 0; i < 3; i++) {
window['myFunction' + i](i);
}
}
Forum: C Jul 31st, 2009
Replies: 10
Views: 674
Posted By Luckychap
As far as I know:

Alt + f9 -> just complile
use:
Ctrl + f9 -> compile + run

:)
Forum: C Jul 31st, 2009
Replies: 21
Views: 1,411
Posted By Luckychap
I just wrote this code to give you an idea for how to do conversion manually (In fact this logic can be used in any language).
you may have to change the code as per you requirements: ...

Done...
Forum: C Jul 31st, 2009
Replies: 21
Views: 1,411
Posted By Luckychap
I have no idea about any available method to convert Hexa String to unsigned char. But can also be done manually.

maintain a array for all possible hexa numbers :


char hexa[] = {'0', '1',...
Forum: JavaScript / DHTML / AJAX Jul 30th, 2009
Replies: 2
Views: 569
Posted By Luckychap
OR use date comparing functions http://www.daniweb.com/forums/post876906.html#post876906
Forum: JavaScript / DHTML / AJAX Jul 30th, 2009
Replies: 2
Views: 569
Posted By Luckychap
The best and simple one be:
Do not show past dates at all.
Forum: C Jul 30th, 2009
Replies: 21
Views: 1,411
Posted By Luckychap
Hey all,
Posting code based on assumptions is totally useless.
Why we take pain when post starter is not bothered at all, after so many assumptions posted.
Forum: C Jul 30th, 2009
Replies: 21
Views: 1,411
Posted By Luckychap
What you really want to do? Explain more.
Forum: JavaScript / DHTML / AJAX Jul 26th, 2009
Replies: 3
Views: 462
Posted By Luckychap
What do you mean by 'broken image'?
Forum: JavaScript / DHTML / AJAX Jul 26th, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
This may work for you:


var dgebi = document.getElementById;
// This function takes elements not elements id.
error_appname(dgebi ('application_name'+i), dgebi ('erSpan' + i));
Forum: JavaScript / DHTML / AJAX Jul 25th, 2009
Replies: 1
Views: 361
Posted By Luckychap
May because of position: relative as the modal background is pushing it offscreen. Try making it absolute.
Forum: JavaScript / DHTML / AJAX Jul 25th, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
This can be done in many ways, but I will tell you easiest way:

Your function error_appname(inputField, erSpan), requires 2 argument, so maintain global arrays for those.


// Global arrays...
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
No problem bros....

Everybody starts with:

'printf(''Hello World");'

BEST OF LUCK!
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
Simple, pass the date element gl also in validation function


// Passing erSpan, so that we can easily show error message
gl.onblur= function() {error_appname(gl, erSpan)};


function...
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
Yes indeed you can.

Add a span element in every row in ur addRow() method


function addRow()
{
// Some of your code

gl.type = 'text';
Forum: JavaScript / DHTML / AJAX Jul 22nd, 2009
Replies: 18
Views: 1,217
Posted By Luckychap
You assigned:
var dt=document.getElementById("application_doj" + iteration).value

dt has already got value. So pass only dt in isDate(dt).



function ValidateForm()
{
alert("hi...
Forum: JavaScript / DHTML / AJAX Jul 9th, 2009
Replies: 5
Views: 654
Posted By Luckychap
You are doing all the manipulation at server side, where javascript can not help you.

Sorry :(
Forum: JavaScript / DHTML / AJAX Jul 4th, 2009
Replies: 5
Views: 654
Posted By Luckychap
You can use this simple method to add new text boxes: -

/* container - HTML element in which textBox needs to be added
labelString - (optional) Label string for text box
textValue -...
Forum: JavaScript / DHTML / AJAX Jul 4th, 2009
Replies: 1
Views: 434
Posted By Luckychap
use z-index css property to bring up your javascript menu.
Forum: JavaScript / DHTML / AJAX Jun 5th, 2009
Replies: 4
Solved: I have a form
Views: 598
Posted By Luckychap
From servlet you send response as true or false. But at client end ie javascript the response will be string 'true' or 'false'. So u need to compare as something like this:


var result =...
Showing results 1 to 40 of 313

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC