|
|
|
How to bind image in jquery. am unable to bind image when i wrote the below code plz help me
jQuery(document).ready(function () {
$("#uploadEditorImage").change(function () {
var data = new FormData();
var files = $("#uploadEditorImage").get(0).files;
if (files.length > 0) {
data.append("HelpSectionImages", files[0]);
}
$.ajax({
url: "../Account/UploadFile/",
type: "POST",
processData: false,
contentType: false,
data: data,
success: function (response) {
jQuery("#selimgs_", top.document).attr('src', response);
},
error: function (er) {
}
});
});
});
|
|
|
|
|
Hi,
I have almost developed a website using Dot net, C#, Jquery, Javascript etc. Now, for having chat among visitors, we picked the AJAX code from https://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe and customized it...
When we see the demo in there, it successfully shows the chatboxes and implements the chats well... But we couldn't able to integrate it with our already built web application (Web forms and not MVC). Since we get no errors, its very hard to predict the issue clearly. Do I have to make some changes in web.config?
Getting a warning alone which is
Warning 1 The 'contract' attribute is invalid - The value 'PlayZone.Services.SessionPool' is invalid according to its datatype 'serviceContractType' - The Enumeration constraint failed. E:\Projects\PlayZoneJUNE04\PlayZone\Web.config 57 48 PlayZone
Actually, I took the code from MSDN and pasted it successfully. The problem seems to occur in the Web.Config's service region.
WEB.CONFIG's SERVICE
<services>
<service name="WebChat.Services.Transition">
<endpoint address="" behaviorConfiguration="Sever.Services.TransitionAspNetAjaxBehavior"
binding="webHttpBinding" contract="WebChat.Services.Transition" />
</service>
<service name="WebChat.Services.SessionPool">
<endpoint address="" behaviorConfiguration="Sever.Services.SessionPoolAspNetAjaxBehavior"
binding="webHttpBinding" contract="WebChat.Services.SessionPool" />
</service>
</services>
Here are the overall details
i) I downloaded Ajax based group chat, which was done following the procedures on the page https://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe#content.
ii) The sample alone as a separate site works fine... But when combined with my website code, it shows the warnings and the chat is not working.
iii) Our Dot net framework version is 4.5... but the web chat's framework on MSDN shows version 4 when run alone.
iv) Server - IIS (Local machine)
Hope this helps you to understand further. Thanks for your concern and have a nice day ahead.
|
|
|
|
|
And how all this related to JavaScript?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
I am getting a finding in my scan indicating that my code is vulnerable to JavaScript hijacking. My code dynamically generate all of the page content, including the Ajax ScriptManager. Because the content is not in the webpage as static markup it is my opinion that this is a false finding. Can someone review my code and either confirm or deny my belief and if I am incorrect recommend a proper implementation.
private void CreateControls(ControlCollection cc)
{
if (RadScriptManager.GetCurrent(_contextPage) == null)
{
RadScriptManager rsm = new RadScriptManager();
rsm.ID = "scriptManager";
cc.Add(rsm);
}
}
<pre>
|
|
|
|
|
That code is not enough, and is also not very much explaining what it does (at least the section shared). You should try to make sure that your website is safe, and that, no network request is left and allowed to make your server run executions without your intention.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I have this line in a .js file.
var nameChanged = require('../../templates/namechanged.hbs')
I searched the entire website and could not find a file namechanged.hbs.
Is it not even a file? Where should I look for this?
There are strangers on the Plain, Croaker
|
|
|
|
|
|
Will do.
Thank you.
There are strangers on the Plain, Croaker
|
|
|
|
|
I found what I needed.
The reference to the 'path' in the require statement referred to the index of the handlebar template associated with the 'path' in an object.
~18K lines down in the file was a handlebar template with an index. It was that index that I needed to find to locate the templating code.
Again, thank you for the help.
There are strangers on the Plain, Croaker
|
|
|
|
|
webkitfullscreenchange, mozfullscreenchange, fullscreenchange is not firing or working when i used it on the iPad So any but have any other alternative then help on this.
|
|
|
|
|
Try using the older webkitbeginfullscreen and webkitendfullscreen events.
History of the Fullscreen API[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
thank it working perfectly....
|
|
|
|
|
So why did you down-vote my answer?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i dont know i think by mistake i did that
|
|
|
|
|
I believe you can reverse it as well by upvoting it.
.AK.
|
|
|
|
|
Compensated.
.AK.
|
|
|
|
|
Thanks.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi,
i have to show the day and date when i click the calendar in javascript. i am developing application using kony.Thank you.
|
|
|
|
|
Kony is just the IDE, the date and time picker would be more like created using a JavaScript library, like jQuery UI etc. Which one of these are you using?
Somehow, which so ever is being used. You can easily get the values, if you would read the API for the library you are using. Unclear, please share the code or the library being used. 7
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Perhaps you sent an email to me, you should reply to the comment (Don't click the email button, please). This way, you not only stay on the community, but you get many other good responses, from other experts and you also help out any other same reader (with a same question) so that he can also get a good response.
A good community member is the one who helps the community, and provides good support to others.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Please convert the value of the input to date first and then you can pick the day easily, like:-
let 'dateInput be the ID of your textbox, then the code will be something like -
var dateValue = $('#dateInput').val();
new Date(dateValue).getDay();
|
|
|
|
|
i need some hands to finish for my following requirements. fairly am new to javascript, to be frank am at baby level. i know this is simple task but i can't make it for past 6 days. i learn jscript by self interest.
my rquirements is that i want to create user's conversation in my page.
(i,e) if some user post therir comments/suggeston means anyone can reply for his quires directly under his/her post..!! for example, like what actually happening in this form.
if i post something, i may receive reply from anyone. this is what i want as code in html/Javascript.
could anyone pls give me code...
helps will appreciated greatly.
thanks in adavance guys.
|
|
|
|
|
I am the systems administrator for a 1500 room hotel. We use a splash page that allows user to login with their guest room number and last name. We have had issues in the past where guest have had poor experience with the page loading. We at first thought it was the network and my network admin thinks it has been fixed after a DNS change. However I am beginning to think there might been another issue. The sight is coded with a short JavaScript animation which I think might be causing slow loading or incompatibility with some browsers. We have large business conventions so JavaScript might be set off for security reasons on some business enterprise imaged PCs. I am no expert in webdesign or coding and would like to know if this is possible. I am hesitant to link the webpage for security purposes however I can, or also provide code exerts if needed. Thanks for any help you can supply.
|
|
|
|