javascript, expression blend and html file

Hi,

I have a HTML file generated in expression blend. I added some jaavscript to it and saved. but at runtime in expression blend when you hit f5 it overwrites the information with what it has stored, and hence the javascript is lost and it defaults to what it has. Does anybody know how to add my javascript so that it gets included at runtime and does not get overwritten??

Thanks as always.
LVL 1
SeosaimhAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CuteBugCommented:
Expression Blend regenerates the html page each time you build your application.

First of all create a copy of the Html page and add your javascript code to it and save it in a separate location.

Now go to the Project Properties of your project. Select the Debug tab. In the Start Action section, select Specific Page and give the location of your html page.
0
SeosaimhAuthor Commented:
Hi, I did what you said and the testpage.html comes up in the browser empty, no controls nothing, what would that be?
0
CuteBugCommented:
It is unable to find the controls in the new location.

rename the testpage.html to any other name and put it in the \bin\Debug folder (or where your .xap file is located). Also provide the new html filename in the Project settings > Start Action > Specific Page.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

SeosaimhAuthor Commented:
did all you requested, and still no luck . Is there anything else I should do? called it consumerscreen.html
0
SeosaimhAuthor Commented:
I can see where I am selecting consumerscreen.html from, but it is not from \bin\Debug folder , reason been as when I go into
Project settings > Start Action > Specific Page   there is no option to go to this folder. any ideas?
0
CuteBugCommented:
Ok. Got it.

Now add the consumerscreen.html to your project. The file will now be copied to the folder where your project exists.

Open your consumerscreen.html, go to the tag where your .xap is linked ( it will be a param tag like this

        <param name="source" value="<YouApplicationName>.xap"/> )

You need to provide the path of your .xap file here.  You can either provide the relative or the absolute path. for eg.
        <param name="source" value="/bin/Debug/<YouApplicationName>.xap"/> )
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CuteBugCommented:
Once you add the consumerscreen.html to the project, you will be able to select it in Project settings > Start Action > Specific Page . Click on the button(...) to the right of the edit box.
0
SeosaimhAuthor Commented:
done all of the above. Am i correct in saying when I open Project settings > Start Action > Specific Page  , I should see /bin/debug ?? as if this is the case I cannot at the moment..
0
SeosaimhAuthor Commented:
it is still not working..
0
SeosaimhAuthor Commented:
Hi I got resolved, thanks for all your help..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.