|
Below javascript locally working but after uploading on server not working even data is there in DB, I mean logically it should display but not.
imgCounter = 0;
ipCounter = 0;
setTimeout("updateImage()",500);
function updateImage()
{
//alert('enter updateImage');
var currentImageSrc = new Array();
//alert('Before Hidden');
var hiddenImage=document.getElementById("Hiddenid11").value
var hiddendata=document.getElementById("Hiddenid13").value
var hiddenTitle=document.getElementById("Hiddenid12").value
var AdvertiseMentId=document.getElementById("Hiddenid15").value
//alert('After Hidden');
//var currentImageSrc = new Array();
currentImageSrc=hiddenImage.split("||")
//alert('enter SPLIT');
var finddata = new Array()
finddata=hiddendata.split("||")
var ImageTitle = new Array()
ImageTitle=hiddenTitle.split("||")
var AddId = new Array()
AdvertiseMentId=AdvertiseMentId.split("||")
if(currentImageSrc.length > 1)
{
//alert('currentImageSrc enter updateImage');
var RotateDiv=document.getElementById("RotateDiv");
if(finddata[imgCounter]==1)
{
//alert("Inside");
//alert('Block if');
RotateDiv.style.display="block"
RotateDiv.innerHTML=currentImageSrc[imgCounter]
}
else
{
//alert('Block else');
RotateDiv.style.display="block"
RotateDiv.innerHTML="<IMG width='800' height='75' onclick='javascript:incCount("+AdvertiseMentId[imgCounter]+");' id='rotateImg' style='CURSOR: hand ; border:Solid 2px #000000;' alt='"+ImageTitle[imgCounter]+"' src='Images/ADD/"+currentImageSrc[imgCounter]+"'>";
}
imgCounter=imgCounter+1;
var TotalImages=document.getElementById("Hiddenid14");
if(imgCounter >= TotalImages.value)
{
imgCounter=0;
}
setTimeout("updateImage()",5000);
//alert('end updateImage');
}
}
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
A few points.
- Your code is javascript, but this forum is the .NET Framework. You stand less chance of getting an answer here than in, say, the web development forum.
- Putting "I need solution urgent" is just plain rude. You may not have noticed, but we are all volunteers here. If you need an answer so bloody urgently, pay for it.
- You've given no indication as to what's wrong with your code, and I'm not going to wade through it trying to figure it out.
- You should wrap your code in pre tags so it gets formatted properly.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I have a solution which works on a sql database . In my solution I have a SqlServerProject which attaches the database file to local server by right-clicking on it and click Deploy and a SetupProject and other projects . I want to install this solution on a target computer and I want to know what to do with my SetupProject to do the Deployment task of my SqlServerProject?
|
|
|
|
|
Stop cross posting and maybe someone will offer suggestions
only two letters away from being an asset
|
|
|
|
|
What do you mean by that?!
|
|
|
|
|
He means that you should pick the most appropriate forum and stick with it. If you have a question in the right forum, then there's a chance that it will be answered properly. You might not get the full answer the first time, but as people contribute to the thread you get a better understanding and everybody benefits. If you have postings in multiple forums, there's less chance of that dialogue building up and everybody loses.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I've been away from .NET for a couple of years now, only using it now and then for small projects. Has anything been added for playing and manipulating audio? What I'm looking for is something that could be used as the basis for writing synthesizers and effects. I've done this with C#/.NET using Managed DirectX, but I don't think that MDX is supported any more. I later switched over to using P/Invoke and the Win32 Wave API.
I've looked at the System.Media namespace, but there's not enough there to do much more than simple wave file playback.
Is there anything in WPF? A cursory look at System.Windows.Media didn't turn up anything interesting beyond the MediaPlayer class.
Are we still in a position of having to roll our own audio libraries using P/Invoke?
|
|
|
|
|
Depending on what you want to do, and what kind of performance you need, there are a few options.
The easiest is using one of the managed wrappers for DirectShow or DirectX audio (DirectShow is no longer part of DirectX, and DirectX audio really now means XAudio2, which is replacing DirectSound).
The more complicated, but more efficient for performance, is to write your own manged <-> unmanaged interface layer, and use things like command batching and shared memory, since every call across the managed / unmanaged interface is a real performance killer.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
You may want to look at the libraries that come with XNA studio. Better multimedia support can be found in the gaming world....
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
For my purpose there are some .NET classes that almost but not quite right and can't be fixed by subclassing and overloading.
I just downloaded the .NET Framework source from MS Shared Source web site
http://referencesource.microsoft.com/netframework.aspx[^]
Now I wonder could I take some classes code from the library and reuse and taylor the code in my library?
It's not like I intend to replace the .NET Framework, I just want to write a difficult to write control. And base its code on an existing one is much easier and a good use of reference material, wouldn't it?
I'm not sure...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
how can I avoid the Microsoft XPS Document Writer from my installed printers
|
|
|
|
|
You can uninstall it on your local computer. You can't prevent (remote) users from printing to a specific printer AFAIK.
Are you trying to prevent users from "stealing content"? If the answer is yes, then pdf995 will pose a problem too.
I are troll
|
|
|
|
|
The best way to do it is to post the same question lots of times!
|
|
|
|
|
Can u tell me how to install iis
|
|
|
|
|
u use windows cd and go to control panal and select add and remove folder and choose add component an dselect iis.
|
|
|
|
|
it's not working
plz give it proper answer
|
|
|
|
|
Or do you just enjoy talking to yourself as if you were more than one person?
|
|
|
|
|
I'm schizophrenic, and so am I
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
I am at my whits end on this one. I am using VS2005. I have a MenuStrip on the Main window when the application is running there is no icon...that is OK. I open a form inside the main window that has an icon set...and it shows the generic little blue, yellow and red icon in the MenuStrip beside File...however if I minimize the form and maximize it my icon shows beside File in the MenuStrip....any pointers where this is going wrong.
|
|
|
|
|
Ever got a solution to this problem?
I'm having the same issue in VS2008.
|
|
|
|
|
My program (ducttape.sourceforge.net) uses a completely custom file system browser for opening and saving files. It does not use the conventional file dialogs (for good reason). Anyway, I just got a bug report of a user trying to make a folder in the file dialog, but the application runs un-elevated by default which caused it to crash with a UnauthorizedAccessException. Of course I could just complain to the user that it can't do it , but I'd prefer something more consistent with explorer and more friendly. So the question is:
How do I utilize the UAC prompt to perform file system operations (like making a new folder), in the same way explorer does? I would suspect there's some elevated COM invoked or something, so what/where would that be? If not, is explorer just running a temporary instance of itself as admin with a command line to execute the operation and then exit? Something else perhaps?
Thanks,
coder0xff
|
|
|
|
|
You can create a separate process that is marked in its manifest as
requestedExecutionLevel level="requireAdministrator"
You can also create the process using the "runas" verb:
try
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "cmd.exe";
proc.StartInfo.Verb = "runas";
proc.Start();
}
catch (Exception)
{
}
You cannot elevate a currently running process that isn't already elevated.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, I'm quite familiar with the ways to start a new elevated process. However, when you attempt to create a new folder in explorer, the UAC prompt is not asking you to permit starting an elevated application. The UAC prompt is specifically saying file operation. How do I do the same?
I know elevated operations can be achieved by using COM components. It does not elevate the process - and that is not my goal. My goal is to perform a file operation with elevated permissions utilizing the UAC prompt for file operations.
With starting a new process, this is what I get: http://i.zdnet.com/gallery/240387-460-416.png[^]
This is what I want: http://kb.parallels.com/Attachments/5354/Images/User_Account_Control_administrator_dialog.png[^]
Thanks
------------
Edit: Looks like consent.exe is the actual prompt. No luck trying to invoke that using command line. After that an instance of DllHost.exe performed the operation - which screams "COM operation!"
modified on Thursday, June 25, 2009 9:10 AM
|
|
|
|
|
IFileOperation[^] may be the COM interface you seek on Vista+...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
how we paying online payment for employ in asp.net
|
|
|
|