|
<body>
<script type="text/javascript">
function mousemove()
{
document.getElementById("divTest").style.visibility = "visible";
}
function mouseout()
{
document.getElementById("divTest").style.visibility = "hidden";
}
</script>
<form id="form1" runat="server">
<div id="divTest">Test DIV Content</div>
<div>
<input type="button" runat="server" onmouseout="mouseout()" onmousemove="mousemove()" id="btnTest" value="Mouse Move/Mouse Out" style="cursor:pointer;"/>
</div>
</form>
</body>
Mate you should learn javascript must in web development. Happy coding
|
|
|
|
|
If you want your code to have better cross-browser compatibility, you should use something more like this:
<html>
<head>
<title></title>
<script type="text/javascript">
function mouseover()
{
document.getElementById("divTest").style.display = "inline";
}
function mouseout()
{
document.getElementById("divTest").style.display = "none";
}
</script>
</head>
<body>
<form id="form1" >
<div>
<input type="button" onmouseout="mouseout()" onmouseover="mouseover()" id="btnTest" value="Mouse Over/Mouse Out" style="cursor:pointer;" />
</div>
<div id="divTest" style="display:none;">Test DIV Content</div>
</form>
</body>
</html>
|
|
|
|
|
Thanks,
This works, however i have some button images i would like to use, i have tried as best to use your code and incorprate it into the image i am using but hit a brick wall.
i used
<img src="images/MainScreen/Welcom.jpg" name="Welcome" width="146" height="43" onClick="mouseout()">
but his code doesn't seem to be doing anything, unlike your code above. Any help would be great
Cheers
Dan
|
|
|
|
|
OK i seem to be getting somewhere.......However, is there any way that i can change the background image of another button by pressing a particualr button.
What i have is a button which when rolled over goes red, and clicked goes green ( ad should stay green!!)
What i then want to do is only when a mouse click is on another button the orignal green button goes back to orginal and the clicked button becomes green.
I have a rough idea of how to do it except but don't know if it would actually work
Current code
<input type="image" onClick= "hideSK();hideRK();showFK();this.src='images/Main screen/Main buttons/Welcome.jpg';MM_callJS('roll')"
onmouseover="this.src='images/Main screen/Main buttons/WelomeRed.jpg'"
onMouseOut="this.src='images/Main screen/Main buttons/Welcome.jpg'"
value="Welcome" src="images/Main screen/Main buttons/Welcome.jpg" width="146" height="43"
I would then like to add a function which will change the previous buttons back to blue
something like button.value="home".image scr= "home blue.jpg
Thanks
Dan
|
|
|
|
|
I have a application using session variables. It works fine if the web app is deployed to a single server. Once the app is put on a load balanced servers, the app sometimes has nothing stored in the session variable. Reason being when the user logged in the first time that page request went to Server A and after login the second page request went to Server B and now the app thinks now one is logged in and kicks the user back to the login page.
Is there a solution for this?
|
|
|
|
|
|
Thanks for the response.
When using State Server, stateconnectionstring needs to be specified. If we have the app on WebServer 1 & 2, the stateconnectionstring would be pointing to a third webserver 3 which is used to store session states. In this event, the app would automatically know to pick up the session values from WebServer 3?
|
|
|
|
|
That is correct except that you can actually use the server machine where one of the apps is running as your state server. Thus you point both web.config files' connection strings to the same ip:port combo.
----------------------------------------------------------
Lorem ipsum dolor sit amet.
modified on Sunday, June 27, 2010 10:55 PM
|
|
|
|
|
Thanks!
|
|
|
|
|
Hi All,
I have a wdsl file and I need to create the proxy class to be able to call a web service from a .net application. Do I need the URL link of the web service in order to call the service?
I use the following syntax to generate the proxy class from wdsl as follows
wsdl /language:cs /protocol:soap c:\wdsl\Service1.wdsl
How do I import into my .net application that will call the class?
How do I call the service if I don't have the url link?
Sorry I am new to this
Thanks
|
|
|
|
|
You do need the URL yes but you could host it locally for testing.
Rather than use the command line, it might be easier for you to just add a Web Reference to the .net project directly. This will create your proxy class and add the URL of the webservice to your web.config. That way you can change this to a production server on release.
This is explained here:
http://msdn.microsoft.com/en-us/library/ms169816.aspx
|
|
|
|
|
Rhys,
Thanks for the reply, the problem is that I only have the wsdl file without the URL.
I have added the file from c:\work.wsdl to Service References and created the reference.cs, Reference.svcmap and the configuration.svcinfo.
However it seems not possible to create the URL locally for testing just from the wsdl.
Any ideas?
Thanks
|
|
|
|
|
It's going to be difficult to test without an actual web service to test against. Is it a commercial service? If so they should have a test service for you to code against?
If not you could create a mock webservice of your own. You know the methods and return types from the wsdl so you could code against that.
|
|
|
|
|
Hi,
I'm New to PHP, but confident in writing CPP/MFC. I am trying to pick up where someone else left off, with a stack of unfinished php scripts. I am wading trough it slowly but steadily. A Few questions arrise:-
Is it possible in PHP to do Bitwise Manipulations, like &,|,<< and >> in PHP.
Another thing I cannot find anything about is, whether function parameters are passed by value or by reference.
How in this 'Typeless' environment do I distinguish between a Character and it's ASCII value, A Number and it's binary value, etc. It seems to Endlesly turn every variable into a String.
All tutorials I can find seem to leave those parts out. It could be that the concepts are considered too complex for novices using the tutorials.
Regards,
Bram van Kampen
|
|
|
|
|
1. The operator set in PHP is pretty much the same as C++. Yes, & | << >> etc are all there.
2. Paramter passing: your choice of by value func($var) or by reference func(&$var) .
3. PHP really has 3 native data types - integer, float and string. What is probably confusing you is the automatic conversions (including to an "invisible" boolean). It also supports objects as a compound data type with encapsulated data structures and functions (methods). The language is growing in this area, so newer versions get better objects.
4. I downloaded a PHP manual from the interweb a while ago. Can't remember where I got it from, but the filename is php_manual_en.chm I'm sure our friend G can find it for you too.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Thanks,
That was realy Helpfull, particularly the Manual.
Regards,
Bram van Kampen
|
|
|
|
|
Why would one use the value of "UserUri" for the cookieless property of Session? This makes the session id appear in address bar which means that a malicious user can somehow by trial and error put random texts in the session state portion of the webaddress and see if he comes up with a valid session belonging to someone else?
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
If you are in a company that has decided for security reasons to disable cookies on all browsers but still want to use the features of Sessions for internal intranet applications that would be a perfect solution. It's like you can have your cookie and eat it too.
And if you are that worried about session spoofing you can enable all sorts of other things on the server that link your session to your IP, your user agent etc. as described here[^] under Securing Session State.
|
|
|
|
|
Dear all,
Pls help me, I want to know the way to analyst on website. How to know which website is using webservice.
Thanks and best regards
|
|
|
|
|
You can't really tell. The site could be using a web service on the server side or via JavaScript.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
This is way outside of any web development I've done so I am not quite sure even how to phrase the question.
I have some web code in master page that dynamically generates a list of user bookmark links, retrieved out of a SQL database. The first link on the generated list is one that allows the user to Add This Page or Remove This Page, depending on whether the page is already in the list of bookmarks. Here is the relevant code:
If CanAddToFavorites Then
If MyUser.Favorites.HasUrl(Url) Then
Result.AppendFormat("<li><a href=""/Reps/Admin/ManageFavorites.aspx?op=r&url={0}"">Remove This Page</a></li>", Url)
Else
Result.AppendFormat("<li><a href=""/Reps/Admin/ManageFavorites.aspx?op=a&url={0}&d={1}"">Add This Page</a></li>", _
HttpUtility.HtmlEncode(Url), HttpUtility.HtmlEncode(PageFullTitle))
End If
Result.AppendLine()
End If
This works fine, but I am not happy with passing everything through the URL. Ideally, I would convert the a into a LinkButton ; on postback the handler would wrap the data into a class, save it to Session and redirect to ManageFavorites.aspx.
I cannot hard-code the link, as bookmarking is available only to field users (back office users get a predetermined bookmark list that cannot be altered.) Given this constraint, how can I intercept a link click to perform server-side code? This sounds like a job for AJAX but I am totally ignorant about that tool so relevant examples would be a huge help.
|
|
|
|
|
If you are redirecting to another page then Ajax isn't going help you.
Gregory.Gadow wrote: I cannot hard-code the link
What link? You mean to your manage favorites page?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
What I need is a link that posts back to the page so that I can perform server-side operations. My understanding is that AJAX was designed for such operations.
And yes, I mean the link to the manage favorites page. You will note in the code I provided that the text is appended to a StringBuilder object. After the link to ManageFavorites.aspx is added, it goes through the list of user bookmarks and adds those. The function then returns either the built string, or an empty string if the user is one of the back office staff.
|
|
|
|
|
ASP.NET is built around postback operations. Ajax is an out of band call that does not use postback.
I don't understand the problem, you are not explaining it clearly. You can't hard code the link for a LinkButton but that is what you are doing for an anchor tag. You should do some research on databinding and databound controls such as Repeater or DataList rather than using such brute force methods and constructing a string.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The code I posted is part of a function, which returns Result.ToStrong . In other words, the anchor is not hard coded, it is being injected into the page at render time as a text stream, along with the user's bookmarks. This works fine with regular HTML, but trying to append <asp:LinkButton ...> would result in that literal text being added, not a control with all its associated functionality.
|
|
|
|