|
Thanks...
i will try to do something else...(but i have a single HTML page and i have need a folder dailog box ... for desktop(filesystem).
|
|
|
|
|
|
Thanks,
How can i use SWFupload in html file... Because I haven't idea about swfupload..
|
|
|
|
|
read the documentation and look at the demos. Theres more than enough there.
|
|
|
|
|
Thanks.... a lot for such cooperaation...
|
|
|
|
|
Hi ,
I am developing one web application. In that i want to automate printer settings [like paper size : A4,A3].How can i change printer settings.
Regards,
Raja baireddy
|
|
|
|
|
you can't do this with php/javascript/html/css. You might have more luck with activex. But I think you might run into another problem in that every printer is different - so unless this is for one printer only, you might end up rewriting it for every printer(!)....
I don't know much about activex either - you might have to write a different one for each browser as well.
|
|
|
|
|
|
Hi there,
I am experiencing a problem which no doubt someone else has come across before but I cant work out for the life of me what the deal is with it.
I have included code below for an onload function and its call that enables me to be able to call multiple functions on-load. There are two at the moment, one that calls the current date and time and puts it in a div and another that "refreshes" an AJAX call and places content in yet another div.
The problem that I am having is that although both functions are being called (the second one is made in another script using a version of the same function call), only the second one is actually producing visible content (in this case a text field). However if I alert a message between the function calls both bits of content are produced as expected.
The code is as follows:
//The function call
print "window.onload = callOnLoads(\"getCurDateTime\", \"\", \"\", \"\")";
//The function definition
function callOnLoads(pageFunction1, pageFunction2, var1, var2)
{
return function()
{
if (pageFunction1 == "getCurDateTime")
getCurDateTime();
if (pageFunction2 == "addDocType")
addDocType("addTypeDiv", "", "", var1, var2);
}
}
The function call is made from a PHP script and the JS definition is held in a JS file.
Anybody have any ideas about this? Im guessing its something to do with the speed of execution given that if I halt it with an alert it then works!
As always, any help is very gratefully received.
Bryant
|
|
|
|
|
I don't really get your code - but if it work with a pause (alert) the you could try using php's "sleep()" or the JavaScript equivalent
|
|
|
|
|
Hello Friends,
I've taken two dropdown(select) in ASP.NET and filling first dropdownlist with CityNames and second dropdown with LocationName accordingly CityName. So i've taken an array in the array i'm having name of locations but i also want to store Location ID's for further searching.
Can anybody let me know how can i do that
|
|
|
|
|
store them how? what do you mean "for further searching"?
You could store as:
- text file.
- database.
- session variable.
- cookie.
Or you could just post the data to the required page.
|
|
|
|
|
<div style="height: 300px; overflow: auto;">
<asp:DataGrid ....>
....
</asp:DataGrid>
</div>
The above used to work until I migrated to VS2008. Now the scrollbar is broken(it moves but the data won't).
Has something changed?
smcirish
Texas
|
|
|
|
|
you should ask this in the ASP.NET forum
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i used RegisterClientScriptBlock in 2003 what is its equivalence in 2005
Thanks in Advance
|
|
|
|
|
It's the same. If it's deprecated, the warning tells you what to use instead.
We have an ASP.NET forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: We have an ASP.NET forum.
Really what is its link?
|
|
|
|
|
Ok, so I have this problem. We have this document management program (called Celum) that I need to upload a whole bunch of documents to. Celum provides an API but it's an html/XML interface and that's providing me with some difficulties.
In order to upload a file I create an html web page as follows:
<html>
<head></head>
<body>
<form method="post" enctype="multipart/form-data" name="uploadForm"
action ="http://[celumserver]/api/upload.api">
Username: <br><input type="text" size="20" maxlength="20" name="username"><br>
Password: <br><input type="password" size="20" maxlength="20" name="password"><br>
TargetFolderID: <br><input type="imput" size="10" maxlength="10" name="folderId"><br>
Choose a file: <br><input type="file" size="40" name="document"><br>
<input type="submit" value="Upload">
</form>
</body>
</html>
And that works fine... for one file... with user intervention.
Does anyone have any idea on how I can automate this? I've never done anythign along these lines and I'm stumped. One of the problems I have is the upload file gets attached as a file in an htmlfilecollection (because of the enctype="multipart/form-data") and I'm not 100% sure on how to do this programatically. At some point I'm also going to have to attach a second XML file with metadata but it should be the same idea as the first file.
Thanks very much!
Nick
Dad always thought laughter was the best medicine, which I guess is why several of us died of tuberculosis.
I can picture in my mind a world without war, a world without hate. And I can picture us attacking that world, because they'd never expect it.
|
|
|
|
|
so you want upload a whole load of users and files at once?
I'd use a csv file to add the users, and file paths and upload the files separately.
|
|
|
|
|
I have an old classic ASP app that I am trying to do some AJAX on (the real way, not Microsoft .Net way). I have a couple of DIVs that are alternated from hidden to visible (depending on if its an UPDATE or READ), which are controlled by a href='#' and an ONCLICK call to some javascript to do the hiding/displaying. My question is, whats the best approach to trigger a database update back when the hyperlink is clicked for the update? Should I be changing the hyperlink to a form button, or have a full form hidden and displayed, rather than just a hyperlink? Just looking for an approach, dont need actual code.
Here is a brief sample of the code I am working with. Note its in a Do..Until loop and returns a few hundred entries back from the database. showHide simply swaps the display: setting, and changeHTML changes the innerHTML of the control passed to it.
<script type="text/javascript">
function showHide<% Response.Write unqID %>()
{
unqID = '<%Response.write unqID %>';
showHide('Comment' + unqID);
showHide('ExpandComment' + unqID);
if(document.getElementById('Edit' + unqID).innerHTML == 'Update')
{changeHTML('Edit' + unqID,'Edit...');}
else
{changeHTML('Edit' + unqID,'Update');}
}
</script>
<a href="#" id="Edit<%Response.write curATMID %>" onclick="showHide<%Response.write unqID %>(); return(false);" class="Comment">Edit...</a>
<div id="<%Response.write "Comment" & unqID %>">
<% Response.Write "<b>" & Trim(db("Comments")) & "</b>" %>
</div>
<div id="Expand<%Response.write "Comment" & curATMID %>" style="display:none">
<textarea id='cmtUpdate<%Response.write "Comment" & curATMID %>' type='text'
style='width:100%; height=60px;'
rows='4' cols='100'>
<%Response.Write Trim(db("Comments")) %> </textarea>
</div>
|
|
|
|
|
|
There is a job board on this site, if you want to hire people, pay for a job ad.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
How to display the contents in all resolution without scrollbar. Even if the resolution is high or low the content should set for that resolution and display entire content with in the screen without scrollbar
Thankyou,
YPKI
|
|
|
|
|
You can use css to lay out a page so that it will flow, but it's not going to look exactly the same on different resolutions, because your image sizes and font sizes will not change to fit.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi guys,
I have the following code where I get values from the logged on user account profile in active directory, but I cannot seem to write back. When i click on the submit button, nothing happens, the page just refreshes. Please I need some help. This is my code:
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, Me.Load
If Page.IsPostBack Then
End If
Dim AD_entry As New DirectoryEntry("LDAP://")
Dim objSearcher As New System.DirectoryServices.DirectorySearcher(AD_entry)
'Find user id in Active Directory
Dim search As New System.DirectoryServices.DirectorySearcher(AD_entry)
search.Filter = [String].Format("(SAMAccountName={0})", System.Environment.UserName)
search.SearchScope = SearchScope.Subtree
search.PropertiesToLoad.Add("cn")
search.PropertiesToLoad.Add("mobile")
search.PropertiesToLoad.Add("facsimiletelephonenumber")
search.PropertiesToLoad.Add("homePhone")
search.PropertiesToLoad.Add("pager")
search.PropertiesToLoad.Add("mail")
search.PropertiesToLoad.Add("telephoneNumber")
search.PropertiesToLoad.Add("displayName")
Dim result As SearchResult = search.FindOne()
Dim ad_extension, ad_mobile, ad_home, ad_work, ad_fax, ad_displayName As String
If result.Properties.Contains("pager") Then
ad_extension = result.Properties("pager")(0)
Else
ad_extension = "---"
End If
If result.Properties.Contains("mobile") Then
ad_mobile = result.Properties("mobile")(0)
Else
ad_mobile = "---"
End If
If result.Properties.Contains("homePhone") Then
ad_home = result.Properties("homePhone")(0)
Else
ad_home = "---"
End If
If result.Properties.Contains("telephoneNumber") Then
ad_work = result.Properties("telephoneNumber")(0)
Else
ad_work = "---"
End If
If result.Properties.Contains("displayName") Then
ad_displayName = result.Properties("displayName")(0)
Else
ad_displayName = "---"
End If
If result.Properties.Contains("facsimiletelephonenumber") Then
ad_fax = result.Properties("facsimiletelephonenumber")(0)
Else
ad_fax = "---"
End If
label_user_id.Text = System.Environment.UserName
textbox_Extension.Text = ad_extension
textbox_Office_Phone.Text = ad_work
textbox_Mobile_Phone.Text = ad_mobile
textbox_Home_Phone.Text = ad_home
textbox_Fax.Text = ad_fax
textbox_displayName.Text = ad_displayName
'Set focus to Extension
' Page.RegisterStartupScript("SetFocus", _
' "<script>document.getElementById('" & textbox_Extension.ClientID & _
' "').focus();</script>")
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim dirEntry As New DirectoryEntry("LDAP://")
Dim dirSearcher As DirectorySearcher = New DirectorySearcher(dirEntry)
dirSearcher.Filter = [String].Format("(SAMAccountName={0})", System.Environment.UserName)
dirSearcher.SearchScope = SearchScope.Subtree
dirSearcher.PropertiesToLoad.Add("cn")
dirSearcher.PropertiesToLoad.Add("mobile")
dirSearcher.PropertiesToLoad.Add("facsimiletelephonenumber")
dirSearcher.PropertiesToLoad.Add("homePhone")
dirSearcher.PropertiesToLoad.Add("pager")
dirSearcher.PropertiesToLoad.Add("mail")
dirSearcher.PropertiesToLoad.Add("telephoneNumber")
dirSearcher.PropertiesToLoad.Add("displayName")
Dim searchResults As SearchResult = dirSearcher.FindOne()
Dim dirEntryResults As New DirectoryEntry(searchResults.Path)
If textbox_displayName.Text <> "---" Then
dirEntryResults.Properties("displayName").Value = textbox_displayName.Text
End If
If textbox_Office_Phone.Text <> "---" Then
dirEntryResults.Properties("telephoneNumber").Add(textbox_Office_Phone.Text)
End If
dirEntryResults.CommitChanges()
dirEntryResults.Close()
End Sub
|
|
|
|