Showing posts with label developing. Show all posts
Showing posts with label developing. Show all posts

Wednesday, March 28, 2012

accordian and frames in IE

Hello all.

I'm trying to use the accordian controll on my page and it works great when I'm developing, but in the production environment my page is displayed inside a frame of another page. When I view the page in FF it works fine, but not when viewed in IE. The inital page looks fine, but the textareas don't collaps/expand when clicking on the headers. Is there anything I've missed or is this i bug?

Thanks

Endre

Hello again.

I have been doing som research and found out the following. It might be a cross-domain problem. When the html page containg the framessets have a different domain name then the page containing the accordian, it does not work. The error is most likeky not related to the accordian, but the ajax scriptmanager control. It looks like it failes even on clicks in the page. I'm not sure, but I think is't a javascript that tries to fint the coordinates of the click and then try to access the page outside the frame.

Any idees on how to fix this?

Endre


I have solved the problem. The following link and the lates versjon of the ControlToolkit made it for me.

http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx

Endre

Monday, March 26, 2012

Access not running webservice methods with only wsdl file

Hello!

I'm new to web services. I'm using Visual Studio 2005, I'm developing a web app (c#). This application will use a java web service (hosted by tomcat) on the local machine. This webservice need some config to run, but on my developer machine i cannot make this configs.
My question: I cannot run the webservice, so I cannot add it to my "Web references", so I cannot insert the function calls into my code. BUT I have a wsdl file. So, is there any way to add a web reference to my code with this wsdl? (It will not work, but i can build my project)

Many thx

Hi,

Thank you for you post!

Here:

#Web Services Integrationhttp://msdn2.microsoft.com/en-us/library/aa478995.aspx

<quote>

In order to add a Web Reference to a .NET Framework-based Web service client, the target Web service must have a WSDL document available. Apache SOAP 2.2oes not contain any support for WSDL.

</quote>

Apache AXIS, also known as Apache SOAP 3.0, supported generating WSDL files.

We have just tested and VS can add web reference using a local WSDL file.

BTW,Wsdl.exe accepts the path to the wsdl file to generate a proxy.http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

If you have further questions,let me know.

Best Regards,


Hy!

Thanks for your answer. I solve it strange way: I put the wsdl file to my localhost, so i can add it to my web reference list. It did not work, but i could build my project.


Hi,

I told you in my last reply:

We have just tested and VS can add web reference using a local WSDL file.

So that is the answer:)

Happy coding.

Access amazon Webservice by javascript in pure html form

I am developing pure html form,

in that i want to show amazon webserice where i dont have any server side, so alternatively

i used some javascript but it is not succesfull,

any one have idea in accessing amazon webservice in javascript ,

You might want to check the Amazon forums. I'm sure they might be able to assist you more with questions regarding their WebService. You could also try checking Google Groups and Yahoo! Developer Network.

http://developer.amazonwebservices.com/connect/forumindex.jspa?categoryID=1



It is not possible to call Amazon WebService from JS Directly due to the Cross Domain. To resolve it create a web service (Which acts as a proxy) which inturn call the amazon webservice. and from JS call your Webservice.


Thanks for this great and amazing simple indian Ajax solution, Pragash.T.


Thanks To every Body ,

i found the solution using iframe tag we can do this , sample code for amazon dvd ads.

<iframesrc="http://rcm-uk.amazon.co.uk/e/cm?t=amazo04-21&o=2&p=36&l=bn1&mode=dvd-uk&browse=501778&fc1=000000<1=&lc1=3366FF&bg1=FFFFFF&f=ifr"

marginwidth="0"marginheight="0"width="600"height="520"border="0"frameborder="0"

style="border: none;"scrolling="no"></iframe>

The url to achieve this ishttps://affiliate-program.amazon.co.uk/gp/associates/login/login.html/202-5683437-3533413

Regards

Pragash.T

Insoft,Chennai

Saturday, March 24, 2012

Abort AJAX Postback

Hello,

I am developing a project, which has many things on admin and merchant side, but very less on user site.

The user site contains a page from where user can search the data. This is the main page on user site.

The search page contains 10 sliders and 6 different parameters which are checkboxlist. There are at least 5, 00,000 records in the database.

I am using database paging to get result fast.

I am using AJAX on this page.

Now the problem is that when ever I move the slider and release it then button click event is called from JavaScript.

I have 10 sliders on the page now when I move all the sliders one by one the page becomes very slow. It performs all the post backs in the queue.

Is there any way from which I can cancel the previous post back if the page is already inasynchronous postback.

I have even tried the following code when the user moves the slider; I call the following function;

function StopPostBack()

{

var CheckPostBack = Sys.WebForms.PageRequestManager.getInstance();

if (CheckPostBack.get_isInAsyncPostBack())

{

CheckPostBack.abortPostBack();

}

}

But this too not helped me much.

I think the problem is that when ever user moves the first slider and release it the button click event is called and in that the stored procedure is called to fetch the data.

Now when user move another slider the function StopPostBack is called but till that time the application has started the database operation.

My stored procedure taking less then 2 sec to return the data. But when there are multiple movements of the slider the page is very slow.

How can I make is fast.

Regards,

Deepesh Verma

Hi Deepesh,

Please refer to this thread, http://forums.asp.net/thread/1695055.aspx
There is no easy way to abort the execution on the server from the client.
I think you need to find a way to reduce the occurrence of postback on the client.

Wednesday, March 21, 2012

A 101 question

I'm new to the MS Ajax library. I'm developing a .NET 2.0 website. I want to be sure I'm using the latest verion of the MS Ajax library and tool kit. Should I use v1.0 of both the library and toolkit or version 3.5 of each?

Thank you.

hello

you just need to have V1.0

in the future , if there is a new version,you need to replace the Dlls.

also there is no 3.5 version, if you mean the .Net 3.5 , then yes it contains the same Ajax version (1.0) !!


Thank you for the clarification.