|
if it is two swf on the same page then use local connection.
if it is two swf on different pages then use environment variables (eg. post to php, store in database and retrieve using php page)
if it is one swf inside another you should be able to give the inner swf an instance name a get the variables that way or possibly use local connection.
|
|
|
|
|
Hello !
i'm new to web design and i have this problem :
i'm creating a web site in dreamweaver cs3 (simple html).one of my pages have some article titles
Title 1
Tilte 2
........
i want to do this : When a user click on the title , to open a popup window without title bar that cointains one image , a description and a close button.But the image and the text should be variables to be used for all articles.
Can someone give me a script in javascript for this situation ?
Thank you in advance !
|
|
|
|
|
Just without doing window.open for which you cant hide title bar, use a floating div to create the popup.
var x = document.createElement('div');
x.style.position = 'absolute';
x.style.top='100px';
x.style.left = '300px';
document.appendChild(x);
Set appropriate content and also review the position according to your requirement.
|
|
|
|
|
thank you but i want 2 object inside popup to be variables 1 image and 1 text description , so when i click the first article the popup should show the first image and the first description , when i click the second article the popup should show the second image and description .... .
is possible to do that ?
thank you.
|
|
|
|
|
Create an img element and appendChild to the Div. Or just assign the innerHTML to the div you have created inside the popup.
You can change innerHTML also when required.
|
|
|
|
|
hi,
I am using .net 1.1 version.
The problem is i have used one datagrid which contains some data columns and one checkbox column.
Datagrid contains nearly 50 records and 50 checkboxes.(i.e) each record contains checkbox.
below the datagrid an image button is placed.if i didn't select any checkboxes and click on the image button it should tell please select any two checkboxes for compare.
but i am using .net 1.1 so please any one help me....
i need the javascript code for how to check whether the checkbox is checked or not...
Regards,
Prakash
|
|
|
|
|
Hi Prakash,
Just try this code. This would help you....
function CheckAllCheckBox(grid)
{
var oItem = grid.children;
var theBox=oItem.item(0)
var chk;
chk=true;
elm=theBox.form.elements;
for(i=0;i<elm.length;i++)
if(elm[i].type=="checkbox" && elm[i].id!=theBox.id )
{
if(elm[i].checked!=true)
chk=false;
}
if (chk==false)
{
alert("Please Select atleast One CheckBox")
return false;
}
}
I had used this code long time back.
Be an Eagle, Sky is Yours.
|
|
|
|
|
Hi all,
I have a web application developed using .net 2005.I have used Ajax control toolkit 1.0 along with this.It was working perfectly.When i tried to run the project somedays after ,Ajax control tool kit is not working .What will be the reason.?
These are the errors im getting
1.Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
2.Unknown server tag 'ajaxToolkit:ToolkitScriptManager'.
Help me to solve this problem..
Thanks in advance for any help.
|
|
|
|
|
|
how to use _doPostBack in javascript to refresh a parent page.
i am writing window.opener.__doPostBack('pagename',''); it does not work
|
|
|
|
|
This might help
window.opener.document.forms[0].submit();
|
|
|
|
|
hi guys.
i am currently working on the site that supports 4 languages. idea was to create the cookie that contains language value. on the basis of the cookie, server side would withdrawn certain data from database. In this way i would have only one page for all languages(for example "news.aspx")
so, my question is: is this way bad for SEO optimization. since there is only one page for all langugaes, crawler will not be able to pass through all languages, only to default.
is this way better :
news_en.aspx
news_hr.aspx
news_de.aspx
or this:
news.aspx?lang=en
news.aspx?lang=hr
news.aspx?lang=de
or is maybe there another way?
|
|
|
|
|
As I understand it:
The first is better in terms that the search engine will pick up the language (en, hr, de). but the second will provide a better grading relating to the search terms "news". Better still would be to implement url rewriting to create links like "news/lang/en".
|
|
|
|
|
Brand New & Updated for 2009 you can sell these turnkey websites and Php scripts. Individually, or as a complete package! YOU will keep 100% of every sale! This Package gives you all that and a whole lot more. Visit us for more detail. http://www.clicknearn.net/2635-64.html
|
|
|
|
|
Pay for advertising like everyone else, don't spam forums with your crap
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
All,
I would like to know how can we access information of clients(IP,data transfered,bytes, time,etc..)connected to IIS server either in FTP or HTTP mode?
I found in a article this is done using COM+ components, using IISAdmin base objects, but I don't know how this is achievable ?
If there is any other better method kindly let me know.
Mike.
|
|
|
|
|
Hello everybody,
From last 3years i developed an Accounting Inventory Payroll Manangement system .
It is running very successfully in UAE.I used VB and SQL Server and some C++ utilities in my program.
Now i want to develop an Online Inventory System.
So i am seeking advices from every one related to web Development.
From ur point of View actually what will be the easies tool for web development ?
I want high speed data accessibility and report generation.More over the the storage capacity of
the backend must be high.
Expecting all suggestions and advices
|
|
|
|
|
Based on your previous experience (VB, SQL Server, C++) I would probably look at ASP.NET (backed with VB.NET, SQL Server, C#) as it shouldn't be too big a leap for you and you should pretty much hit the ground running.
Different people mean different things when they say "high storage capacity". To some people, ten or twenty thousand rows in a table is "high volume". To others, it means terabytes of data. I suspect SQL Server will probably meet your requirements. If not, you can use .NET with other database technologies without any real problems.
To put this in context, I'm mainly a Java web developer (Spring MVC, JSP, servlets, Tomcat) so I don't have any vested interest in ASP.NET, although I have worked on a few projects that use it. I just think that given your background it looks like an obvious choice, unless you have a particular problem with .NET or Microsoft.
|
|
|
|
|
I want to name my website as www.abc.edu.pk/xyz
But i was told that it can only be named as www.abc.edu.pk/xyz.html
How can i name it the first way?
|
|
|
|
|
if you are using apache look up mod rewrite
redirect all requests to a base page and build your pages from there
abc.com/car/toyota/2
you would split the string type = car make = toyota page = 2 and use those values to build your page
*****************************************************
if you are using static html pages you can do it crudely
you could use a folder for each page and put an index.html inside it
eg the file cars.html could be stored as /cars/index.html
when abc.com/cars is requseted it will show /cars/index.html with a clean URL
|
|
|
|
|
|
I thought I might also add if you directory index is "index.html" (i.e when you type www.yourdomain.com you end up looking at http://www.yourdomain.com/index.html) then you can also achieve the same thing with sub folders.
eg:
www.yourdomain.com/yourfolder
www.yourdomain.com/yourfolder/index.html
should be the same location.
On IIS I believe the default directory index is default.html instead of index.html
|
|
|
|
|
MVC applications does so using URL rewriting. Hope that approach is good for you.
|
|
|
|
|
hello there i have on click event that open a popup calendar but the problem is that after getting the date from the popup in format MM/dd/yyyy i want to change the format to Month ddy, yyyy
for example
i click on the calendar image a calendar popup opens usually it gives 01/01/2001 format but at the a specific text box i want it to be January 01, 2001
how could this be done how could i get the information and then change it to that format i tried to do 2 functions triggered on click event but the next one will not wait for the first one to end they are queued they are triggered in parallel.
|
|
|
|
|