Forum: JavaScript / DHTML / AJAX 9 Days Ago |
| Replies: 9 Views: 1,891 As I have explained how to get <script> tags. Say we have an array of tags 'scripts'.
var orginalSrc = "example.js", newSrc = "new.js";
// Looping through all the tags
for(var i = 0; i <... |
Forum: JavaScript / DHTML / AJAX 9 Days Ago |
| Replies: 9 Views: 426 <table id='my_table'><tr><td></td><td></td></tr></table>
Now on body on load bind the 'onclick' event this way
The body html:
<script>
function init() {
var table =... |
Forum: JavaScript / DHTML / AJAX 10 Days Ago |
| Replies: 9 Views: 426 I think calling of addText() on click is not correct. |
Forum: JavaScript / DHTML / AJAX 10 Days Ago |
| Replies: 9 Views: 426 Is there any javascript error? |
Forum: JavaScript / DHTML / AJAX 10 Days Ago |
| Replies: 9 Views: 426 here:
<script>
function addText(event){
//document.getElementById("insertid").value +=
//(event.srcElement || event.target).firstChild.nodeValue.toString();... |
Forum: JavaScript / DHTML / AJAX 12 Days Ago |
| Replies: 9 Views: 426 This is because you are appending the new value always. You have to get the position of the carrot and do some string operation. here is a function to insert in between:-... |
Forum: JavaScript / DHTML / AJAX 29 Days Ago |
| Replies: 8 Views: 491 Even better:
$(document).ready(function() {
$("ul.sc_menu a").click(function()
{
$('#content #mainbg #infobox #trackinfo').animate({opacity:"0"}, function(){
... |
Forum: JavaScript / DHTML / AJAX 29 Days Ago |
| Replies: 8 Views: 491 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 29 Days Ago |
| Replies: 3 Views: 362 Try this example:
<html>
<head>
<title>Handling onClick for links</title>
<script>
<!--
function confirmLink()
{ |
Forum: JavaScript / DHTML / AJAX 29 Days Ago |
| Replies: 3 Views: 362 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 29 Days Ago |
| Replies: 2 Views: 301 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: 290 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: 476 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: 291 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: 290 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: 346 There is no mechanism for bring content out of local domain with Ajax. |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009 |
| Replies: 9 Views: 615 Appreciated!
Thanks to all. |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2009 |
| Replies: 9 Views: 615 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: 615 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: 615 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,051 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,051 Sorry for typo it must be:
inpR.id = 'textBox_' + oRow.rowIndex+1 |
Forum: C Aug 11th, 2009 |
| Replies: 9 Views: 632 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,051 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: 632 Can you post the code that result in termination. |
Forum: JavaScript / DHTML / AJAX Aug 10th, 2009 |
| Replies: 3 Views: 452 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: 367 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: 698 As far as I know:
Alt + f9 -> just complile
use:
Ctrl + f9 -> compile + run
:) |
Forum: C Jul 31st, 2009 |
| Replies: 21 Views: 1,567 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,567 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: 649 OR use date comparing functions http://www.daniweb.com/forums/post876906.html#post876906 |
Forum: JavaScript / DHTML / AJAX Jul 30th, 2009 |
| Replies: 2 Views: 649 The best and simple one be:
Do not show past dates at all. |
Forum: C Jul 30th, 2009 |
| Replies: 21 Views: 1,567 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,567 What you really want to do? Explain more. |
Forum: JavaScript / DHTML / AJAX Jul 26th, 2009 |
| Replies: 3 Views: 483 What do you mean by 'broken image'? |
Forum: JavaScript / DHTML / AJAX Jul 26th, 2009 |
| Replies: 18 Views: 1,275 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: 385 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,275 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,275 No problem bros....
Everybody starts with:
'printf(''Hello World");'
BEST OF LUCK! |
Forum: JavaScript / DHTML / AJAX Jul 23rd, 2009 |
| Replies: 18 Views: 1,275 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... |