Advertisement

Drag and drop script static boxesDrag and drop script static

Moderator: Calcifer

Drag and drop script static boxesDrag and drop script static

Postby bhupsonline » Mon Mar 31, 2008 4:04 pm

Drag and drop script static boxes
you have develop fine script I just love that
I want to know about static boxes how can I pass some html content which is in string in asp.net aspx.cs file or one textbox value which is in aspx file into javascript file dragable-boxes.js
this is the following code
var htmlContentOfNewBox = '<DIV>This is a static box created from the function createDefaultBoxes().</div>'; // HTML content of new box
var titleOfNewBox = 'This is a static box';
var x1=document.createElement("div");
x1.innerHTML="asdfasdfasdfasdfasdfasdfasdfasdf";


if(!staticObjectArray['staticObject1']){ // The box is not stored in cookie - we need to create it.
var newIndex = createABox(1,100,false,'staticObject1');



var html_doc1 = document.getElementById('dragableBoxContent' + newIndex);
document.getElementById('dragableBoxHeader_txt' + newIndex).innerHTML = titleOfNewBox;
}else{ // Box is stored in cookie - all we have to do is to move content into it.
var html_doc1 = document.getElementById('dragableBoxContent' + staticObjectArray['staticObject1']);
document.getElementById('dragableBoxHeader_txt' + staticObjectArray['staticObject1']).innerHTML = titleOfNewBox;

}

hideHeaderOptionsForStaticBoxes(staticObjectArray['staticObject1']);
html_doc1.appendChild(x1);

I just wanna add dynamic html content to static boxes
bhupsonline
 
Posts: 1
Joined: Mon Mar 31, 2008 12:37 pm

Return to Request/Suggest a script by posting in this thread

Who is online

Users browsing this forum: No registered users and 8 guests