|
which ajax you mean? the ajax toolkit?
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Most here on the CodeProject write their own programs for everything, such as slideshows, few purchase anything for use.
Slideshows are just a div tag element with an image tag inside, in which you use javascript to change the image source, and to tween the image up down left or right.
You can then make it more complex by adding something to store various image file locations, such as a xml file, and rotate through the record elements.
I had some slide show code from a project I had to upgrade, in which the slideshow was the only thing that worked. Actually now that I think about it, I had to fix that as well, was poorly written. Requires JQuery 1.8.2. I don't have the CSS for it anymore.
I think this had a container called slider_Container, and 4 div tags inside it, in which in moved the div inside the container. It's written in Jquery, and will not work with an update panel on the page, because you have to edit the file below to handle the UP events when they fire.
<div id="_slider_Container">
<div id="slide0"><img /></div>
<div id="slide1"><img /></div>
<div id="slide2"><img /></div>
<div id="slide3"><img /></div>
</div>
$(document).ready(function () {
var slideContainer = $('[id*="_slider_container"]');
var slidesHolder = $(slideContainer).children();
var slideWidth = $(slideContainer).width();
var slides = $(slidesHolder).children();
var slidePos = 0;
var slideTotal = slides.length;
var currentSlide = 0;
var delay = 5000;
var slideTime = 1000;
$(slideContainer).css({
'overflow': 'hidden',
'position': 'relative'
});
$(slidesHolder).css({
'position': 'absolute'
});
for (var i = 0; i < slides.length; i++) {
$(slides[i]).css({
'position': 'absolute',
'top': '0',
'left': slidePos + 'px'
});
slidePos = slidePos + slideWidth;
}
$(slidesHolder).css('width', slidePos + slideWidth);
$(slides).first().clone().css({
'left': slidePos + 'px'
}).appendTo(slidesHolder);
animate();
function animate() {
$(slidesHolder).delay(delay).animate({
left: '-=' + slideWidth
}, slideTime, function () {
if (currentSlide < slideTotal - 1) {
currentSlide++;
animate();
} else {
$(slidesHolder).css({
'left': 0
});
currentSlide = 0;
animate();
}
});
}
});
|
|
|
|
|
i am having a text box and a button.i want to validate that textbox using javascript.when i click on the submit button one alert message will come that textbox must be filled out and if i am entering some value to that textbox it will show what value i have entered in that alert message.i want a sample code for this.
|
|
|
|
|
Try This
<script type="text/javascript">
function jsTest()
{
if (document.getElementById("<%=txtBox1.ClientID%>").value == "") {
alert("Please Select a Pay From Option");
document.getElementById("<%=txtBox1.ClientID%>").focus();
return false;
}
else {
alert(document.getElementById("<%=txtBox1.ClientID%>").value);
}
}
</script>
|
|
|
|
|
It's as easy as drink water call below function
<script type="text/javascript">
function Confirm() {
return confirm("Are U sure to delete this file؟");
}
<asp:Button ID="BtnDelete" runat="server" Text="delete" Width="95" OnClientClick="if (!Confirm()) return false;" UseSubmitBehavior="False"/>
|
|
|
|
|
I developed a Asp.net application which reads the files in a remote machine(Windows NT machine) and when the user selects a file name then the chart is loaded with the data in that file.
Howover, when the user selects the file, chart is loaded in 3 to 5 secs approx. How can i improve the loading of this chart? Any ideas or inputs are appreciated??
Thanks
|
|
|
|
|
Best thing would be to have the data in a database, because it would be miliseconds to retrieve the data.
More practically, I would look into building a Progress bar which could show that activity is actually happening. Most users are fine with 3 to 5 second response time as long as they know that something is actually happening.
|
|
|
|
|
David,
Thanks for the Response.
I do have a progress bar which greys out the screen while loading...I know 3 or 4 secs for loading data is not a big deal......Actually, the same files are read by a vb program and charts are displayed automatically when a file is updated.
Having data in the database is a overhead as the data is updated in the files every 1 minute during the peak hours and each file has 520 rows * 13 columns of data.
|
|
|
|
|
Hmmm. Maybe you should try to break down the problem into its pieces to determine where to make your improvement.
For example, determine how many miliseconds for each part of the process ...
1) read file
2) analyze data
3) draw graphs
4) present results to user
I'm not exactly sure how to capture each one of those statistics because I don't fully understand your application, but you get the idea. Determine which piece of the puzzle is taking the longest and then the folks here can offer you ideas on how to make it better.
Some other points of interest to post would be:
a) what version of IIS are you using
b) what browser is your client using
c) what kind of network connection is between your webserver and client (LAN/WAN), (10/100/1000) MB per second.
d) maybe a simple ping test from the client machine to the webserver could provide insight to a slow network
Good luck. Keep us posted of your progress and solution.
|
|
|
|
|
So your talking about a web application that displays a list of files on a remote server, and when the user selects a file, you chart or graph the data into an image using Microsoft chart.
Web app right, what version of chart are you using, or version of asp.net.
I have functions that read 20,000 XML records and creates a graph in less than 1/4 second, and chart in another 1/4 second.
|
|
|
|
|
Does anyone else use this menu in a asp.net web page? I can get it to work in a regular html page, but not in an asp.net page.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
I am developing many small web sites. Could you please recommend me an application that could speed up my work. Ideal would be if it could take PSD file and produce ASPX files as output.
I know this is very complex issue and I could loose generality using it. But I am asking for an application that could speed up my work even a bit.
Thank you in advance
|
|
|
|
|
Macromedia's Fireworks came the closet back in 2003, the new edition may as well. It allowed you to make slices using the slice tool, so you can take a firework file, and slice it up into pieces, and then export the pieces as html.
I did some searching, and several companies claim they can do it.
In the long run, a competent programmer can translate a page mockup into an HTML encoded page by hand in a short amount of time.
In the history of web pages, it looked like many companies like Microsoft was going to phase out web programmers or designers by allowing programs such as word, excel, and in-design to export HTML for web sites. But over the course of time, even those programs were not able to step down lower enough for the common man to build a web site.
Perhaps you will be the one to write that program, making you rich and famous.
|
|
|
|
|
Thank you very much for response.
Fireworks outputs a png file. So in my opinion it is rather helpful for graphic designers. Photoshop is large-caliber gun, while Fireworks can speed up your time over Photoshop in small projects.
But is still outputs png, so it doesn't speed up developer's work. Am I correct?
|
|
|
|
|
It saves project files as png, but outputs as whatever you choose, jpeg, png or gif
You can download a 30 day trial and check it out. I really like the program, but I don't want to spend $200 dollars on it.
The output is kind of crazy, it generates html and images slices into a folder, and you have to piece it together again I think. I haven't used it in 6 years.
|
|
|
|
|
Hi guys,
I use LDAP server to authenticate user, and i want to implement "Remember me so I don't have to log on again" Check box concept for my application, and cookies are disabled, how can i do this,
any help ?
Regards
Vishwa
|
|
|
|
|
I use ASP.NET with VB. myDataSet is a DataSet with some data. I want to save the DataSet XML to Local Storage and then load the item from Local Storage offline. But now I seem to be failed to write the item of xml to Local Storage. Does somebody know how to solve this problem?
Dim xml As String = myDataSet.GetXml()
Dim str As String = "<script> localStorage.setItem('key1', '" & xml & "'); </script>"
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "showmessage1", str, False)
|
|
|
|
|
I use localStorage to save a item called "key1", and then I want to read the value and display it on Label('LabelLS'). But the Label'text does not change. I am sure localStorage get the key1 item(I had used document.write(d) to print key1 item). Does somebody know how to solve it?
Protected Sub ButtonSubmit_Click(sender As Object, e As EventArgs) Handles ButtonSubmit.Click
Dim str2 As String = "<script> var d = localStorage.getItem('key1'); var c = document.getElementById('LabelLS'); c.innerHTML = d; </script>"
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "showmessage2", str2, False)
|
|
|
|
|
sir,currently we are developing mobile website in C#.we are beginners.could you pls,explain how to insert radio button control in our mobile site..am unable to see any toolbox control regarding that.
|
|
|
|
|
Actually i have a doubt.
I was thinking to make some tool but the problem is that it needs to extract some data which is in datagrid in some other site.
Is it possible to extract those data from that site and store it in,say,textbox in my site.
-ANUBHAW-
|
|
|
|
|
Yes, that is possible.
All web pages are actually an html pages. And your grid data will be in the html Table. so you need to read the html table data.
Here[^] is the sample code to read site as an html.
best of luck
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Thanks for that. Really Appreciate that but am getting a problem.
Error says:
"Could not find file 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\www.google.com'."
Am not getting that what's the problem.
|
|
|
|
|
are you using same code given in the link ?
Thanks
-Amit Gajjar (MinterProject)
|
|
|
|
|
Hey thanks. Actually i got it. What i was missing was that i wasnt prefixing "http://" before. but it's ok now. but there's a diff issue now.
I have a page say "http://ev~.in/.../..../~.jsp"
It's showing error that
"
A potentially dangerous Request.Form value was detected from the client (txtdest="<!doctype html><html...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.
"
I guess we cant bypass that. right?
What my main aim is that i have table under tht page (i have to login too) which shows attendance. I just want to extract the attendance thing. Is it possible?
|
|
|
|