|
hi my name is gajendra i am new to java script .
i need a java script code for uploading files it may be doc or txt files and i have to store this files in data base actually i am working in php and joomla i have this doubt while writing component for joomla i need help could u help me plzzzzzzzzzzzzzzzzzzzz
|
|
|
|
|
|
Just learning about cookies, I created a test script and realized that if the url at the time the visitors cookie was set contained "www" (http:// www.mydomain.com) and at a later time they reaccessed the site WITHOUT the "www" (http://mydomain.com) then the cookie is not recognised because the domain is deemed different.
I googled without luck.
Anybody steer me straight please?
here is my test script(ASP)
<%
affiliate=Request.Cookies("affid")
if len(Request.Cookies("affid")) > 0 then 'check to see if a cookie is already set.
response.write("affid = :" & affiliate)
else
'if no cookie is set and the querystring contains a value for affid eg http:// mydomain.com?affid=100001 then create a first party cookie.
If len(request.querystring("affid")) > 0 then
affID = request.querystring("affid")
response.write " affID = " & affID
Response.Cookies("affID")=affID
Response.Cookies("affID").Expires=date + 365
end if
end if
%>
|
|
|
|
|
I think the path attribute of the cookies is the one which is playing the trick.
|
|
|
|
|
Seems a compact privacy policyis required for cookies to be anywhere close to reliable if a users browsers privacy setting is medium or higher.
|
|
|
|
|
Guys,
We have an embedded webbrowser in one of our applications running a javascript based web-application.
One of the buttons calls up a new IE window with a calendar control. In this popup you have to select "Allow blocked content" before being able to use the calendar. I've tried round about every option in every zone in Internet Explorer to stop this messagebar from showing, but unfortunately to no avail.
How can I prevent the message bar from showing? It's local, safe content and I should be able to add the registry setting at installation of our product... I'm guessing that this is because it actually opens a new IE instance because the embedded webbrowser is a webbrowser-control and not a real IE instance?
Many thanks in advance!
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
|
Hey thanks, I was already thinking about an option like that.
In meantime I figured a way to remove the message bar ("Mark of the web") but now it crashes on a object "Permission Denied" .
I'll take this very much in consideration thanks. (I can't use aspx though, All is on local machine, with no IIS)
|
|
|
|
|
V. wrote: How can I prevent the message bar from showing?
You can not. That would break or relax the web browser security warning.
|
|
|
|
|
How to upload .docx file using ASP?
When I use windows vista (Installed MS office 2007) using normal ASP code, it don't allow me to upload .docx file in sql server database to store in "Image" field.
Error comes with "OLEDB" restrictions.
The same code allows me with machine (OS Windows xp/vista) have lower version of MS Office 2000/2003/xp (not MS office 2007). And I am also not able to open it, because it stores the MIME type "application/x-zip-compressed"...and opens in ZIP format.
Please any one can help for this kind of problem.
Kind Regards,
Madhusudan KUshwaha
|
|
|
|
|
What is the error message that you get?
|
|
|
|
|
Thanks to reply my query.
I am getting this error with classic method using "ABCUPLOAD4" dll, however i am getting the data in "Image" type field of sql server database.
Error 1:
Microsoft OLE DB Provider for SQL Server error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
|
|
|
|
|
|
yes, i got the same solution while googling...but is it related to ABCUPLOAD dll version ?
|
|
|
|
|
Hi all,
This is my first post here.
I have this question and hoped that some of you Gurus could help me in getting a solution.
I have this function (dhInicia_aux) that runs when the readyState == 'complete'.
As you can see it as a css.addrule, after doing the code i realized that what i really needed was to add an entire css file into the stylesheet object, instead of just making addRules 'ad eternum' any solution from you guys?
Thanks in advance,
Luis Figueira
function dhInicia_aux() {
try {
var css = document.getElementById('dhEdit').contentWindow.document.createStyleSheet();
css.addRule(".gctitulo", "font-family:arial;font-size:1.2em;font-weight:bold;color:#54585D;");
document.getElementById('dhEdit').contentWindow.document.body.style.margin = '5px';
document.getElementById('dhEdit').contentWindow.document.body.style.fontFamily = 'arial';
document.getElementById('dhEdit').contentWindow.document.body.style.fontSize = dhTamanhoFonte + "pt";
document.getElementById('dhVistaHtml').style.fontSize = dhTamanhoFonte + "pt";
document.getElementById('dhVistaHtml').style.fontFamily = 'arial';
document.getElementById('dhVistaHtml').style.color= "#0000FF";
}
|
|
|
|
|
lbfigueira wrote: what i really needed was to add an entire css file into the stylesheet object,
|
|
|
|
|
i open a windows form from flase i want this form to be in the center of the Screen
merwa
|
|
|
|
|
|
merwa wrote: flase
Did you mean flash?
If yes, then you can try using ActionScript right?
merwa wrote: open a windows form
You can use window.open .
merwa wrote: center of the Screen
You can use moveTo .
-- modified at 8:34 Thursday 23rd August, 2007
|
|
|
|
|
I have noticed that on some sites you can browse your machine for path to files you want to upload to the website.
Attachments for webmail is an example. You click a button and a dialog is presented so you can search for and select the file you want to upload.
Is there a way of doing this in javascript?
What considerations need to be considered with different client operating systems (win, mac, *nix)?
|
|
|
|
|
Not really a javascript expert so can't answer all yuor quesitons definitively, but google the "javascript fileupload object" for what you want - you can certainly select the files this way, to upload them you'll need make an ajax call or similar. It ought to work across all major browsers adn OS's.
Fred
|
|
|
|
|
Thanks for the info. The javascript fileupload object is just what I need.
|
|
|
|
|
|
Thanks for the links. The stickman article is what I needed.
|
|
|
|
|
When you have a OBJECT tag that needs to be populated by a dynamic SWF. If for some chance, the SWF could not be streamed and results in a 404, then Internet Explorer seems to be eternally requesting the page as is deduced from the Status bar "Opening page ....'
Here are my questions:
1) Any defined timeouts that Internet Explorer or its ActiveX Flash objects follow?
2) Any standard mechanism to adopt in this inline. The other workaround being hit a XmlHttp and get a status code like 200 to proceed with this SWF filling.
|
|
|
|